diff options
| author | 2018-10-30 21:50:44 +0800 | |
|---|---|---|
| committer | 2018-10-31 12:42:38 -0700 | |
| commit | 73b907a083b8a8c1c62cb494bc9fbe6ae086c460 (patch) | |
| tree | 83e7f678a3e27987ed47d82b58d27a479653d614 /arch/tile/ssh:/git@git.zx2c4.com | |
| parent | net: hns3: add error handler for hns3_nic_init_vector_data() (diff) | |
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 'arch/tile/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
