2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-10 06:34:17 +08:00
linux-next/drivers/net/ethernet/hisilicon/hns3/hns3pf
Huazhong Tan 49f971bd30 net: hns3: fix a memory leak issue for hclge_map_unmap_ring_to_vf_vector
When hclge_bind_ring_with_vector() fails,
hclge_map_unmap_ring_to_vf_vector() returns the error
directly, so nobody will free the memory allocated by
hclge_get_ring_chain_from_mbx().

So hclge_free_vector_ring_chain() should be called no matter
hclge_bind_ring_with_vector() fails or not.

Fixes: 84e095d64e ("net: hns3: Change PF to add ring-vect binding & resetQ to mailbox")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-05-28 17:39:01 -07:00
..
hclge_cmd.c net: hns3: add handshake with hardware while doing reset 2019-05-28 17:39:01 -07:00
hclge_cmd.h net: hns3: add support for dump firmware statistics by debugfs 2019-05-28 17:39:01 -07:00
hclge_dcb.c net: hns3: only support tc 0 for VF 2019-01-30 14:50:03 -08:00
hclge_dcb.h net: hns3: Add SPDX tags to HNS3 PF driver 2018-07-21 08:44:23 -07:00
hclge_debugfs.c net: hns3: add support for dump firmware statistics by debugfs 2019-05-28 17:39:01 -07:00
hclge_debugfs.h net: hns3: Add "dcb register" status information query function 2018-12-15 10:54:18 -08:00
hclge_err.c net: hns3: remove reset after command send failed 2019-04-26 12:13:29 -04:00
hclge_err.h net: hns3: Add handling of MAC tunnel interruption 2019-04-19 18:43:16 -07:00
hclge_main.c net: hns3: stop schedule reset service while unloading driver 2019-05-28 17:39:01 -07:00
hclge_main.h net: hns3: use HCLGE_STATE_ROCE_REGISTERED to indicate PF ROCE client has registered 2019-05-28 17:39:01 -07:00
hclge_mbx.c net: hns3: fix a memory leak issue for hclge_map_unmap_ring_to_vf_vector 2019-05-28 17:39:01 -07:00
hclge_mdio.c net: phy: marvell: add new default led configure for m88e151x 2019-04-23 10:40:32 -07:00
hclge_mdio.h net: hns3: Fix NULL deref when unloading driver 2019-01-30 14:50:03 -08:00
hclge_tm.c net: hns3: fix pause configure fail problem 2019-04-26 12:13:28 -04:00
hclge_tm.h net: hns3: do not return GE PFC setting err when initializing 2019-01-23 11:13:02 -08:00
Makefile net: hns3: fix compile error 2019-03-27 22:47:58 -07:00