mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
leds: lm3601x: Don't use mutex after it was destroyed
[ Upstream commit32f7eed0c7
] The mutex might still be in use until the devm cleanup callback devm_led_classdev_flash_release() is called. This only happens some time after lm3601x_remove() completed. Fixes:e63a744871
("leds: lm3601x: Convert class registration to device managed") Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
08faf07717
commit
7565207066
1 changed files with 0 additions and 2 deletions
|
@ -444,8 +444,6 @@ static int lm3601x_remove(struct i2c_client *client)
|
|||
{
|
||||
struct lm3601x_led *led = i2c_get_clientdata(client);
|
||||
|
||||
mutex_destroy(&led->lock);
|
||||
|
||||
return regmap_update_bits(led->regmap, LM3601X_ENABLE_REG,
|
||||
LM3601X_ENABLE_MASK,
|
||||
LM3601X_MODE_STANDBY);
|
||||
|
|
Loading…
Reference in a new issue