diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-07-12 12:08:36 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2022-08-02 16:43:31 +0200 |
commit | e1af5c8155867e6773474649c76e5c68940008d5 (patch) | |
tree | d777e38296dcff67e32d7de55d3da8f1295caf47 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 0d77252bc4d28b6b80b4c9b56927cbf74a4d0eb1 (diff) |
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 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions