diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2018-10-30 14:50:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-31 20:42:38 +0100 |
commit | 73b907a083b8a8c1c62cb494bc9fbe6ae086c460 (patch) | |
tree | 83e7f678a3e27987ed47d82b58d27a479653d614 /drivers/net/appletalk | |
parent | net: hns3: add error handler for hns3_nic_init_vector_data() (diff) | |
download | linux-73b907a083b8a8c1c62cb494bc9fbe6ae086c460.tar.xz linux-73b907a083b8a8c1c62cb494bc9fbe6ae086c460.zip |
net: hns3: bugfix for buffer not free problem during resetting
When hns3_get_ring_config()/hns3_queue_to_ring()/
hns3_get_vector_ring_chain() failed during resetting, the allocated
memory has not been freed before these three functions return. So
this patch adds error handler in these functions to fix it.
Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/appletalk')
0 files changed, 0 insertions, 0 deletions