OSDN Git Service

net: hns3: Fixes the error legs in hclge_init_ae_dev function
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 1 May 2018 18:56:00 +0000 (19:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 19:08:37 +0000 (15:08 -0400)
commitffd5656e182b94148998b48f748112450c9ff2b0
tree18001a105d9ecba46b5cbbd908ef2f3a5008bc41
parent38e62046d4c95272e2fb001d2d72baf48fa090e9
net: hns3: Fixes the error legs in hclge_init_ae_dev function

This patch fixes some of the missed error legs in the initialization
function of the ae device. This might cause leaks in case of failure.

Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer
Support")
Signed-off-by: Huazhong Tan <tanhuazhong@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/hns3pf/hclge_main.c