]> 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)
commitd7bc73b6a03e0044c1208436dea4685403538bb3
tree05801e55b20135562c305118b5cd6e500b0eb17b
parent1216efae119e4ca4ef37ca3ceb0f901c69abee92
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: 18d0b91230ff ("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