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)
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>

No differences found