]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: add error handler for initializing command queue
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 6 Apr 2019 07:43:34 +0000 (15:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:36 +0000 (06:43 -0700)
commitbbc8d4d4138b12a25938b7211f878eba08cd7e17
tree976dd552df78d5e24cb1c772e4a5e9732f308c54
parent3063f0f57fef1f399b1236c1ae83dd6e694f4c5e
net: hns3: add error handler for initializing command queue

[ Upstream commit 4339ef396ab65a61f7f22f36d7ba94b6e9e0939b ]

This patch adds error handler for the failure of command queue
initialization both PF and VF.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c