]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Dec 2017 15:40:39 +0000 (10:40 -0500)
commitcfd74f656b6ad9ec155cc45a63ae78c68965c904
tree7a054c083ae7e67d717933c5ce64e104afa24191
parentc07a73651d53fd1c239bab88bc2250f45bd9fe7e
net: hns3: free the ring_data structrue when change tqps

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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c