diff options
author | Johan Hovold <[email protected]> | 2020-06-01 15:39:47 +0200 |
---|---|---|
committer | Pavel Machek <[email protected]> | 2020-06-22 10:37:59 +0200 |
commit | d584221e683bbd173738603b83a315f27d27d043 (patch) | |
tree | 268ed0e7145c1c701aa82b4c443bb65793007fc3 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 6f4aa35744f69ed9b0bf5a736c9ca9b44bc1dcea (diff) |
leds: lm3533: fix use-after-free on unbind
Several MFD child drivers register their class devices directly under
the parent device. This means you cannot blindly do devres conversions
so that deregistration ends up being tied to the parent device,
something which leads to use-after-free on driver unbind when the class
device is released while still being registered.
Fixes: 50154e29e5cc ("leds: lm3533: Use devm_led_classdev_register")
Cc: stable <[email protected]> # 4.6
Cc: Amitoj Kaur Chawla <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Pavel Machek <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions