summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-menf21bmc.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-07-12 13:08:36 +0300
committerPavel Machek <pavel@ucw.cz>2022-08-02 17:43:31 +0300
commite1af5c8155867e6773474649c76e5c68940008d5 (patch)
treed777e38296dcff67e32d7de55d3da8f1295caf47 /drivers/leds/leds-menf21bmc.c
parent0d77252bc4d28b6b80b4c9b56927cbf74a4d0eb1 (diff)
downloadlinux-e1af5c8155867e6773474649c76e5c68940008d5.tar.xz
leds: is31fl319x: Fix devm vs. non-devm ordering
When non-devm resources are allocated they mustn't be followed by devm allocations, otherwise it will break the tear down ordering and might lead to crashes or other bugs during ->remove() stage. Fix this by wrapping mutex_destroy() call with devm_add_action_or_reset(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds/leds-menf21bmc.c')
0 files changed, 0 insertions, 0 deletions