Commit 67a69f8
net: hns3: add a check for queue_id in hclge_reset_vf_queue()
The queue_id is received from vf, if use it directly,
an out-of-bound issue may be caused, so add a check for
this queue_id before using it in hclge_reset_vf_queue().
Fixes: 1a426f8 ("net: hns3: fix the VF queue reset flow error")
Signed-off-by: Yufeng Mo <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent eb4733d commit 67a69f8
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9813 | 9813 | | |
9814 | 9814 | | |
9815 | 9815 | | |
| 9816 | + | |
9816 | 9817 | | |
9817 | 9818 | | |
9818 | 9819 | | |
9819 | 9820 | | |
9820 | 9821 | | |
9821 | 9822 | | |
| 9823 | + | |
| 9824 | + | |
| 9825 | + | |
| 9826 | + | |
| 9827 | + | |
| 9828 | + | |
9822 | 9829 | | |
9823 | 9830 | | |
9824 | 9831 | | |
| |||
0 commit comments