linux-brain/drivers/net/ethernet/hisilicon/hns3/hns3pf
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
..
Makefile net: hns3: fix compile error 2019-03-27 22:47:58 -07:00
hclge_cmd.c net: hns3: fix some reset handshake issue 2019-08-01 13:32:13 -04:00
hclge_cmd.h net: hns3: Use the correct style for SPDX License Identifier 2019-11-05 17:45:38 -08:00
hclge_dcb.c net: hns3: fix ETS bandwidth validation bug 2019-11-14 18:06:34 -08:00
hclge_dcb.h net: hns3: Use the correct style for SPDX License Identifier 2019-11-05 17:45:38 -08:00
hclge_debugfs.c net: hns3: add some DFX info for reset issue 2019-09-11 09:08:46 +01:00
hclge_debugfs.h net: hns3: remove a misused pragma packed 2020-12-21 13:27:03 +01:00
hclge_err.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-09-15 14:17:27 +02:00
hclge_err.h net: hns3: implement .process_hw_error for hns3 client 2019-08-29 16:57:43 -07:00
hclge_main.c net: hns3: add a check for queue_id in hclge_reset_vf_queue() 2021-02-17 10:35:17 +01:00
hclge_main.h net: hns3: fix a wrong reset interrupt status mask 2019-11-19 19:09:53 -08:00
hclge_mbx.c net: hns3: add or modify comments 2019-08-18 12:59:12 -07:00
hclge_mdio.c net: hns3: add phy_attached_info() to the hns3 driver 2019-08-18 12:59:13 -07:00
hclge_mdio.h net: hns3: Use the correct style for SPDX License Identifier 2019-11-05 17:45:38 -08:00
hclge_tm.c net: hns3: fix mis-counting IRQ vector numbers issue 2019-10-19 11:40:55 -07:00
hclge_tm.h net: hns3: Use the correct style for SPDX License Identifier 2019-11-05 17:45:38 -08:00