summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorHuazhong Tan2019-05-28 11:03:02 +0200
committerDavid S. Miller2019-05-29 02:39:01 +0200
commit49f971bd308571fe466687227130a7082b662d0e (patch)
tree8d9fed7219f419276aca3a1c4906b0c2c4654e1f /security
parentnet: hns3: adjust hns3_uninit_phy()'s location in the hns3_client_uninit() (diff)
downloadkernel-qcow2-linux-49f971bd308571fe466687227130a7082b662d0e.tar.gz
kernel-qcow2-linux-49f971bd308571fe466687227130a7082b662d0e.tar.xz
kernel-qcow2-linux-49f971bd308571fe466687227130a7082b662d0e.zip
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: 84e095d64ed9 ("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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions