Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b03f505c authored by Zhengchao Shao's avatar Zhengchao Shao Committed by Greg Kroah-Hartman
Browse files

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



[ Upstream commit c6092ea1e6d7bd12acd881f6aa2b5054cd70e096 ]

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>
parent 834d2da2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -860,7 +860,7 @@ static int cxgb4vf_open(struct net_device *dev)
	 */
	err = t4vf_update_port_info(pi);
	if (err < 0)
		return err;
		goto err_unwind;

	/*
	 * Note that this interface is up and start everything up ...