Commit 6d413f9e authored by Zhengchao Shao's avatar Zhengchao Shao Committed by sanglipeng
Browse files

cxgb4vf: shut down the adapter when t4vf_update_port_info() failed in cxgb4vf_open()

stable inclusion
from stable-v5.10.155
commit 4ad684ba028cfb5c4bf924e46855ef11c15aa5ae
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7M5F4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4ad684ba028cfb5c4bf924e46855ef11c15aa5ae



--------------------------------

[ Upstream commit c6092ea1 ]

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: 18d79f72 ("cxgb4vf: Update port information in cxgb4vf_open()")
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20221109012100.99132-1-shaozhengchao@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent e79000b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment