diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2025-06-17 20:08:13 +0300 |
---|---|---|
committer | Boqun Feng <boqun.feng@gmail.com> | 2025-07-12 01:11:19 +0300 |
commit | 3b07bb900af7f43f13f9ff398b4c6ca1dee217cd (patch) | |
tree | 5a2c5e9b6d21fddcb6273ba2faee92e80254f962 /drivers/usb/cdns3/debug.h | |
parent | d24a54e032021cf381af3c3cf119cc5cf6b3c1be (diff) | |
download | linux-3b07bb900af7f43f13f9ff398b4c6ca1dee217cd.tar.xz |
leds: lp8860: Check return value of devm_mutex_init()
devm_mutex_init() can fail. With CONFIG_DEBUG_MUTEXES=y the mutex will be
marked as unusable and trigger errors on usage.
Add the missed check.
Fixes: 87a59548af95 ("leds: lp8860: Use new mutex guards to cleanup function exits")
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Andrew Davis <afd@ti.com>
Acked-by: Lee Jones <lee@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20250617-must_check-devm_mutex_init-v7-2-d9e449f4d224@weissschuh.net
Diffstat (limited to 'drivers/usb/cdns3/debug.h')
0 files changed, 0 insertions, 0 deletions