android_kernel_google_msm/drivers/isdn/hardware
Dan Carpenter eeeeb9763a mISDN: fix a loop count
commit 40d24c4d8a7430aa4dfd7a665fa3faf3b05b673f upstream.

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>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-10-26 23:15:38 +08:00
..
avm Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
eicon isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
mISDN mISDN: fix a loop count 2016-10-26 23:15:38 +08:00
Kconfig
Makefile