]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Fix an off by one bug
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Jun 2017 09:10:10 +0000 (12:10 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:32:34 +0000 (22:32 -0700)
commit4faf3234fc81aba7b5aa85b1408b06a5d40a4ef1
treebe0f2cae623f03194ee5866f864605ebe1534e08
parent28693a990711eee82644a22803fc4647bc21ade4
qed: Fix an off by one bug

Orabug: 26783820

The p_l2_info->pp_qid_usage[] array has "p_l2_info->queues" elements so
the > here should be a >= or we write beyond the end of the array.

Fixes: bbe3f233ec5e ("qed: Assign a unique per-queue index to queue-cid")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Upstream commit 0331402aeaefe858709b0a4d44ade15f82d3a119 ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_l2.c