]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcbc843f9990e900f3628b9b64fb18009b9ed9258
tree18001a105d9ecba46b5cbbd908ef2f3a5008bc41
parentceb94ba26aff3920fee6000d5bb020860e417d34
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: 22c0e2ce21dd ("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