summaryrefslogtreecommitdiff
path: root/include/linux/timerfd.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-12-15 13:07:52 +0300
committerLuis Henriques <luis.henriques@canonical.com>2016-01-25 10:43:49 +0000
commit504507b13779118a9cd10787c1822f861d32b269 (patch)
tree766e972264d0b1c8fac8efe469c22e269b05abe9 /include/linux/timerfd.h
parente4db761922de0f7599f63cb65cb3195ae38d4407 (diff)
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: cae86d4a4e56 ('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: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux/timerfd.h')
0 files changed, 0 insertions, 0 deletions