summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_fbcon.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2020-06-01 15:39:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-11 15:33:36 +0200
commitfe6402e0e66cfeb957bf9c25a37df392028fcf4f (patch)
tree7244b9c35c566cd31db8bdcfaa6225fc13726308 /drivers/gpu/drm/nouveau/nouveau_fbcon.c
parent3564cddefb5bd0de65510cd17da2253808eef6e7 (diff)
leds: 88pm860x: fix use-after-free on unbind
commit eca21c2d8655387823d695b26e6fe78cf3975c05 upstream. 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: 375446df95ee ("leds: 88pm860x: Use devm_led_classdev_register") Cc: stable <stable@vger.kernel.org> # 4.6 Cc: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_fbcon.c')
0 files changed, 0 insertions, 0 deletions