Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
leds: trigger: Fix error path to not unlock the unlocked mutex
ttyname is allocated before the mutex is taken, so it must not be unlocked in the error path. Reported-by: Pavel Machek <pavel@ucw.cz> Fixes: fd4a641 ("leds: trigger: implement a tty trigger") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
- Loading branch information