commit | 532cfc0df1e4d68e74522ef4a0dcbf6ebbe68287 | [log] [tgz] |
---|---|---|
author | Yufeng Mo <moyufeng@huawei.com> | Tue Feb 09 17:03:07 2021 +0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Feb 09 15:20:43 2021 -0800 |
tree | 514fff9bbd472bb30699e30b8e2cd9d08115f1ca | |
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>