2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-09 22:24:04 +08:00
linux-next/drivers/net/ethernet/hisilicon/hns3
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
..
hns3pf net: hns3: fix a memory leak issue for hclge_map_unmap_ring_to_vf_vector 2019-05-28 17:39:01 -07:00
hns3vf net: hns3: stop schedule reset service while unloading driver 2019-05-28 17:39:01 -07:00
hclge_mbx.h net: hns3: use a reserved byte to identify need_resp flag 2019-04-26 12:13:28 -04:00
hnae3.c net: hns3: split function hnae3_match_n_instantiate() 2019-04-04 10:20:39 -07:00
hnae3.h net: hns3: add aRFS support for PF 2019-05-26 13:24:56 -07:00
hns3_dcbnl.c net: hns3: use HNS3_NIC_STATE_RESETTING to indicate resetting 2018-11-07 11:42:17 -08:00
hns3_debugfs.c net: hns3: add support for dump firmware statistics by debugfs 2019-05-28 17:39:01 -07:00
hns3_enet.c net: hns3: adjust hns3_uninit_phy()'s location in the hns3_client_uninit() 2019-05-28 17:39:01 -07:00
hns3_enet.h net: hns3: fix for HNS3_RXD_GRO_SIZE_M macro 2019-05-28 17:39:00 -07:00
hns3_ethtool.c net: hns3: add counter for times RX pages gets allocated 2019-05-07 10:37:13 -07:00
Makefile net: hns3: Add debugfs framework registration 2018-11-23 17:28:59 -08:00