]> 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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Nov 2022 03:30:30 +0000 (19:30 -0800)
commitd3c8e83ef2043b512f88c364d7862d3cf0cdac60
tree51b45dd8b6fa536d5805cae6a507f09c802523f3
parentb490b2ea0ee492a56ed533c2a4778c81a65300c8
cxgb4vf: shut down the adapter when t4vf_update_port_info() failed in cxgb4vf_open()

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>
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c