OpenCloudOS-Kernel/drivers/isdn/hardware
Dan Carpenter 40d24c4d8a mISDN: fix a loop count
There are two issue here.
1)  cnt starts as maxloop + 1 so all these loops iterate one more time
    than intended.
2)  At the end of the loop we test for "if (maxloop && !cnt)" but for
    the first two loops, we end with cnt equal to -1.  Changing this to
    a pre-op means we end with cnt set to 0.

Fixes: cae86d4a4e ('mISDN: Add driver for Infineon ISDN chipset family')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-12-15 12:42:27 -05:00
..
avm Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-05-01 17:51:54 -07:00
eicon isdn: off by one in connect_res() 2015-02-02 19:33:18 -08:00
mISDN mISDN: fix a loop count 2015-12-15 12:42:27 -05:00
Kconfig
Makefile Add mISDN driver 2008-07-27 01:46:33 +02:00