]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4vf: shut down the adapter when t4vf_update_port_info() failed in cxgb4vf_open()
authorZhengchao Shao <shaozhengchao@huawei.com>
Wed, 9 Nov 2022 01:21:00 +0000 (09:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:07 +0000 (17:42 +0100)
commit570f93f912f6ac23293077848fcd6efea300d2ef
tree0264daefe56274ce4ea09c3c518efc35d133516b
parent669979b1c340445c6e5f88908e6035ffb32316e3
cxgb4vf: shut down the adapter when t4vf_update_port_info() failed in cxgb4vf_open()

[ Upstream commit d3c8e83ef2043b512f88c364d7862d3cf0cdac60 ]

When t4vf_update_port_info() failed in cxgb4vf_open(), resources applied
during adapter goes up are not cleared. Fix it. Only be compiled, not be
tested.

Fixes: d00e44244c07 ("cxgb4vf: Update port information in cxgb4vf_open()")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20221109012100.99132-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c