]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Add a check for client instance init state
authorFuyun Liang <liangfuyun1@huawei.com>
Tue, 15 May 2018 18:20:07 +0000 (19:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 15:33:07 +0000 (11:33 -0400)
commit8714bac4c4d046d980c68ac5eb48507646173064
tree446f955cb9df76a6a59d80e6825f4f7a4e7b2673
parent5b798c03b1767f249cc8533ad40c552480564075
net: hns3: Add a check for client instance init state

If the client instance is initializd failed, we do not need to uninit it.
This patch adds a state check to check init state of client instance.

Fixes: e19a0c0541b2 ("net: hns3: Add support of the HNAE3 framework")
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.c
drivers/net/ethernet/hisilicon/hns3/hnae3.h