linux/drivers/isdn/hardware/mISDN
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
..
Kconfig kconfig: use bool instead of boolean for type definition attributes 2015-01-07 13:08:04 +01:00
Makefile
avmfritz.c Drivers: isdn: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
hfc_multi.h mISDN: Added support for fragmentation of E1 interfaces of hfcmulti driver. 2012-04-26 05:21:03 -04:00
hfc_multi_8xx.h isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
hfc_pci.h isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
hfcmulti.c Drivers: isdn: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
hfcpci.c mISDN: replace current->state by set_current_state() 2015-02-22 15:24:10 -05:00
hfcsusb.c ISDN: Add check for usb_alloc_urb() result 2012-07-18 09:40:54 -07:00
hfcsusb.h mISDN: Add X-Tensions USB ISDN TA XC-525 2012-05-22 15:19:01 -04:00
iohelper.h isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
ipac.h tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00
isar.h isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
mISDNinfineon.c treewide: Fix typo in printk messages 2015-03-06 23:05:39 +01:00
mISDNipac.c mISDN: fix a loop count 2015-12-15 12:42:27 -05:00
mISDNisar.c isdn: Fix typo in drivers/isdn 2012-11-09 17:10:16 -05:00
netjet.c Drivers: isdn: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
netjet.h isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
speedfax.c Drivers: isdn: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
w6692.c mISDN: avoid arch specific __builtin_return_address call 2015-01-13 17:08:21 -05:00
w6692.h