]> git.baikalelectronics.ru Git - kernel.git/commit
isdn: fix a wrapping bug in isdn_ppp_ioctl()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 9 Oct 2012 23:42:18 +0000 (23:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2012 02:50:45 +0000 (22:50 -0400)
commitdf8d111ec6506b13e09bde9781ff4c922c8fe79e
treec199eb13057b333a03ec2c134c119bfbed36ba0b
parent00bcdce5b53577d3135b34d5cc63ba032b6e9127
isdn: fix a wrapping bug in isdn_ppp_ioctl()

"protos" is an array of unsigned longs and "i" is the number of bits in
an unsigned long so we need to use 1UL as well to prevent the shift
from wrapping around.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/i4l/isdn_ppp.c