Skip to content
Commit 3b07bb90 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Boqun Feng
Browse files

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: 87a59548 ("leds: lp8860: Use new mutex guards to cleanup function exits")
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Acked-by: default avatarAndrew Davis <afd@ti.com>
Acked-by: default avatarLee Jones <lee@kernel.org>
Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20250617-must_check-devm_mutex_init-v7-2-d9e449f4d224@weissschuh.net
parent d24a54e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment