]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
UBUNTU: SAUCE: {topost} net: hns3: fix get_vector ops in hclgevf_main module
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 4 May 2018 10:29:47 +0000 (18:29 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 18:42:11 +0000 (14:42 -0400)
commit9c70f72ae293257e6895a78f017c03ca9c6b793a
treee693a3a2f0b15ea1b2b8dfe84b96372ce08fcda1
parent9fc999febaff573c9faa512eb8801c67aa56bc87
UBUNTU: SAUCE: {topost} net: hns3: fix get_vector ops in hclgevf_main module

BugLink: https://bugs.launchpad.net/bugs/1768670
The hclgevf_free_vector function expects the caller to pass
the vector_id to it, and hclgevf_put_vector pass vector to
it now, which will cause vector allocation problem.

This patch fixes it by converting vector into vector_id before
calling hclgevf_free_vector.

Fixes: e2cb1dec9779 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
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: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c