]> git.baikalelectronics.ru Git - kernel.git/commit
leds: lm3601x: Don't use mutex after it was destroyed
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 15 Aug 2022 08:02:27 +0000 (10:02 +0200)
committerWolfram Sang <wsa@kernel.org>
Tue, 16 Aug 2022 10:33:55 +0000 (12:33 +0200)
commit4df2f93931d4c1a0bc1e8d5b2dd7fbe2f861636b
tree0b83b3d43d8c192e69ade5f9d158daf9f2af79f6
parent2b475094ce02ebd14c04d17607c6e72439c0b49d
leds: lm3601x: Don't use mutex after it was destroyed

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: 6393b0fc6360 ("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>
drivers/leds/flash/leds-lm3601x.c