]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 5 Sep 2018 12:18:37 +0000 (14:18 +0200)
commitc56c0fcb5af52c1fe885cecbe4c69c2af41b06ae
tree991d78141b940f800d6ec5af350eed20f6c2618f
parent7a6957489909f6ac865e23275f08b0e56e3ce330
net: hns3: remove the Redundant put_vector in hns3_client_uninit

BugLink: https://bugs.launchpad.net/bugs/1787477
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>
(cherry picked from commit 43e2b1c7f4a498520c741b4c0a89f8475bd8b950)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c