linux-brain/drivers/net/ethernet/hisilicon
Yufeng Mo beb85f4927 net: hns3: add a check for queue_id in hclge_reset_vf_queue()
[ Upstream commit 67a69f84cab60484f02eb8cbc7a76edffbb28a25 ]

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: 1a426f8b40 ("net: hns3: fix the VF queue reset flow error")
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-02-17 10:35:17 +01:00
..
hns net: hns: fix return value check in __lb_other_process() 2021-01-12 20:16:15 +01:00
hns3 net: hns3: add a check for queue_id in hclge_reset_vf_queue() 2021-02-17 10:35:17 +01:00
Kconfig net: hisilicon: Add support for HI13X1 to hip04_eth 2019-07-09 14:29:26 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hip04_eth.c net: hisilicon: Fix a BUG trigered by wrong bytes_compl 2019-12-31 16:41:22 +01:00
hisi_femac.c net: Remove dev_err() usage after platform_get_irq() 2019-07-30 14:37:35 -07:00
hix5hd2_gmac.c net: hisilicon: Fix signedness bug in hix5hd2_dev_probe() 2019-09-27 10:01:36 +02:00
hns_mdio.c net: hisilicon: Fix usage of uninitialized variable in function mdio_sc_cfg_reg_write() 2019-10-02 14:20:22 -07:00