]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: out of bound read in debug code
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 20 Jan 2014 10:28:59 +0000 (13:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jan 2014 01:02:52 +0000 (17:02 -0800)
commitbca839919af0e531d6734a322eeefb77afea3fb4
tree3974c68c132de6cb099244fec1a9600d8ec71b0c
parentc3620f0d5577482d2da82686f2eb701331c3d2a3
rxrpc: out of bound read in debug code

Smatch complains because we are using an untrusted index into the
rxrpc_acks[] array.  It's just a read and it's only in the debug code,
but it's simple enough to add a check and fix it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/ar-ack.c