Skip to content
Commit 0435a4d0 authored by zhangyue's avatar zhangyue Committed by Jakub Kicinski
Browse files

net: qed: fix the array may be out of bound



If the variable 'p_bit->flags' is always 0,
the loop condition is always 0.

The variable 'j' may be greater than or equal to 32.

At this time, the array 'p_aeu->bits[32]' may be out
of bound.

Signed-off-by: default avatarzhangyue <zhangyue1@kylinos.cn>
Link: https://lore.kernel.org/r/20211125113610.273841-1-zhangyue1@kylinos.cn


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent bacb6c1e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment