]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: free the ring_data structrue when change tqps
authorPeng Li <lipeng321@huawei.com>
Fri, 22 Dec 2017 04:21:43 +0000 (12:21 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:47:05 +0000 (10:47 -0500)
commit743031296da55cd809f6a89a4c84565f7c443558
tree219f8534beb3a16f42cf64541bdbe52bd56acf2d
parent0241ffbe6421a83e187f69461a2ab12d0255aed1
net: hns3: free the ring_data structrue when change tqps

BugLink: http://bugs.launchpad.net/bugs/1756097
This patch fixes a memory leak problems in change tqps process,
the function hns3_uninit_all_ring and hns3_init_all_ring
may be called many times.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Mingguang Qu <qumingguang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 99fdf6b1cadf41bb253408589788f025027274f3)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c