Skip to contentSkip to conversation

mlxsw: i2c: Fix initialization error flow

PATCH Applied Ido Schimmel 2 participants 2 messages Apr 7, 2022 – Apr 8, 2022

Subsystems (3)
lore
Share & tools
lore

Ido Schimmel

author maintainer
#0 lore raw

PATCH 1/1 mlxsw: i2c: Fix initialization error flow

From: Vadim Pasternak <[email protected]>

Add mutex_destroy() call in driver initialization error flow.

Fixes 6882b0aee180f ("mlxsw: Introduce support for I2C bus")
---
 drivers/net/ethernet/mellanox/mlxsw/i2c.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlxsw/i2c.c +1 -0
index 939b692ffc33..ce843ea91464 100644
@@ -650,6 +650,7 @@ static int mlxsw_i2c_probe(struct i2c_client *client,
 	return 0;
 
 errout:
+	mutex_destroy(&mlxsw_i2c->cmd.lock);
 	i2c_set_clientdata(client, NULL);
 
 	return err;
Signature · 1 line
2.33.1
#1 lore raw
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Thu, 7 Apr 2022 10:07:03 +0300 you wrote:

From: Vadim Pasternak <[email protected]>

Add mutex_destroy() call in driver initialization error flow.

Fixes 6882b0aee180f ("mlxsw: Introduce support for I2C bus")

[...]

Here is the summary with links:
- [net] mlxsw: i2c: Fix initialization error flow

    https://git.kernel.org/netdev/net/c/d452088cdfd5

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html