]> git.baikalelectronics.ru Git - kernel.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)
commit640f1f163c5aeb4d6537dcb1f76399b4914e9ef3
tree05801e55b20135562c305118b5cd6e500b0eb17b
parent8559ab9cab1f62f0550c3b33f2e40e1719e0c752
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: c4b058a73eff ("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