]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
qed: Correct out-of-bound access in OOO history
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Tue, 14 Mar 2017 13:26:03 +0000 (15:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 18:37:05 +0000 (11:37 -0700)
commitdb31d330e8b0ad8926725eb2af6f6422c07ca7ab
tree05801e55b20135562c305118b5cd6e500b0eb17b
parent1df2adedcce17ad4a39fba74f0e2b611f797fe10
qed: Correct out-of-bound access in OOO history

Need to set the number of entries in database, otherwise the logic
would quickly surpass the array.

Fixes: 1d6cff4fca43 ("qed: Add iSCSI out of order packet handling")
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_ooo.c