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)
commit08d4d217dff89707471b26348d97258016fcb8ed
tree3974c68c132de6cb099244fec1a9600d8ec71b0c
parent2fa053a0a27440ba2ada7acbc0afb11cdae243b2
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