Commit 919f9f4
eth: bnxt: fix out-of-range access of vnic_info array
The bnxt_queue_{start | stop}() access vnic_info as much as allocated,
which indicates bp->nr_vnics.
So, it should not reach bp->vnic_info[bp->nr_vnics].
Fixes: 6619585 ("eth: bnxt: do not use BNXT_VNIC_NTUPLE unconditionally in queue restart logic")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20250316025837.939527-1-ap420073@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent f653b60 commit 919f9f4
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15651 | 15651 | | |
15652 | 15652 | | |
15653 | 15653 | | |
15654 | | - | |
| 15654 | + | |
15655 | 15655 | | |
15656 | 15656 | | |
15657 | 15657 | | |
| |||
15679 | 15679 | | |
15680 | 15680 | | |
15681 | 15681 | | |
15682 | | - | |
| 15682 | + | |
15683 | 15683 | | |
15684 | 15684 | | |
15685 | 15685 | | |
| |||
0 commit comments