diff options
author | Yufeng Mo <moyufeng@huawei.com> | 2021-02-09 17:03:07 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-09 15:20:43 -0800 |
commit | 532cfc0df1e4d68e74522ef4a0dcbf6ebbe68287 (patch) | |
tree | 514fff9bbd472bb30699e30b8e2cd9d08115f1ca /tools/perf/scripts/python/syscall-counts.py | |
parent | 326334aad024a60f46dc5e7dbe1efe32da3ca66f (diff) |
net: hns3: add a check for index in hclge_get_rss_key()
The index is received from vf, if use it directly,
an out-of-bound issue may be caused, so add a check for
this index before using it in hclge_get_rss_key().
Fixes: a638b1d8cc87 ("net: hns3: fix get VF RSS issue")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions