]> asedeno.scripts.mit.edu Git - linux.git/commit
net: hns3: add vector status check before free vector
authorPeng Li <lipeng321@huawei.com>
Thu, 28 Jun 2018 04:12:21 +0000 (12:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2018 02:06:34 +0000 (11:06 +0900)
commit36cbbdf6439729878271ff15422a643d13f133d4
tree0ec51dad6b9d9ee2b35e34d87f0eb4501c2457ad
parente718a93fee036fa8f9b09c76319c81713473287b
net: hns3: add vector status check before free vector

If the hdev->vector_status[vector_id] is already HCLGE_INVALID_VPORT,
should log the error and return.

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