]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: remove the Redundant put_vector in hns3_client_uninit
authorPeng Li <lipeng321@huawei.com>
Thu, 28 Jun 2018 04:12:27 +0000 (12:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2018 02:06:34 +0000 (11:06 +0900)
commit35fed51d8bcb72560ae2ca99eae0977e60476bbd
treedcb5530257fc1ac525713cd986a3af67b065150f
parent614c96977aa3ec27dfee8d7bb59eee07b5ae15b8
net: hns3: remove the Redundant put_vector in hns3_client_uninit

The interface h->ae_algo->ops->put_vector is called in both
hns3_nic_dealloc_vector_data and hns3_nic_uninit_vector_data in
hns3_client_uninit, this will cause vector freed twice.
This patch remove the Redundant put_vector to make vector freed
only once.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c