diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2018-10-30 16:50:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-31 22:42:38 +0300 |
commit | 73b907a083b8a8c1c62cb494bc9fbe6ae086c460 (patch) | |
tree | 83e7f678a3e27987ed47d82b58d27a479653d614 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ece4bf46e98c9f3775a488f3932a531508d3b1a2 (diff) | |
download | linux-73b907a083b8a8c1c62cb494bc9fbe6ae086c460.tar.xz |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions