mISDN: array underflow in open_bchannel()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Mar 2012 21:20:48 +0000 (21:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Mar 2012 02:42:32 +0000 (22:42 -0400)
commit819a100846295461bc0f1bfcb8e5ab11c1bc4cdb
tree60a01beefe73812d91e6459bcfa0cccd54ea2e59
parentc54e9bd38a06babf94fd45e5f1df9a1109e12818
mISDN: array underflow in open_bchannel()

There are two channels here.  User space starts counting channels at one
but in the kernel we start at zero.  If the user passes in a zero
channel that's invalid and could lead to memory corruption.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/avmfritz.c
drivers/isdn/hardware/mISDN/hfcpci.c
drivers/isdn/hardware/mISDN/hfcsusb.c
drivers/isdn/hardware/mISDN/mISDNipac.c
drivers/isdn/hardware/mISDN/mISDNisar.c
drivers/isdn/hardware/mISDN/netjet.c
drivers/isdn/hardware/mISDN/w6692.c