]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add error handler for hns3_nic_init_vector_data()
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 30 Oct 2018 13:50:43 +0000 (21:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Oct 2018 19:42:38 +0000 (12:42 -0700)
commitb25cf2ad85a9413e50d88fb4aaf561690677c7fa
treea7ddcd25fd9c6244c11a4b4e59bcbfcb8c43080b
parentc36077075ff754fbb2e59aa02870e3b2dbc661f2
net: hns3: add error handler for hns3_nic_init_vector_data()

When hns3_nic_init_vector_data() fails to map ring to vector,
it should cancel the netif_napi_add() that has been successfully
done and then exits.

Fixes: 6e2406330b28 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c