linux-brain/drivers/net/ethernet/hisilicon/hns3
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
..
hns3pf net: hns3: add a check for queue_id in hclge_reset_vf_queue() 2021-02-17 10:35:17 +01:00
hns3vf net: hns3: Clear the CMDQ registers before unmapping BAR region 2020-11-01 12:01:04 +01:00
Makefile net: hns3: Add debugfs framework registration 2018-11-23 17:28:59 -08:00
hclge_mbx.h net: hns3: fix the number of queues actually used by ARQ 2021-01-17 14:05:31 +01:00
hnae3.c net: hns3: add client node validity judgment 2019-09-06 15:20:34 +02:00
hnae3.h net: hns3: fix error handling for desc filling 2020-07-29 10:18:33 +02:00
hns3_dcbnl.c net: hns3: fix some coding style issues 2019-06-09 13:20:59 -07:00
hns3_debugfs.c net: hns3: modify some logs format 2019-09-11 09:08:45 +01:00
hns3_enet.c net: hns3: Fix for geneve tx checksum bug 2020-09-17 13:47:46 +02:00
hns3_enet.h net: hns3: Use the correct style for SPDX License Identifier 2019-11-05 17:45:38 -08:00
hns3_ethtool.c net: hns3: fix use-after-free when doing self test 2020-07-16 08:16:39 +02:00