aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorQasim Ijaz <[email protected]>2025-06-15 22:59:41 +0000
committerJiri Kosina <[email protected]>2025-06-20 07:01:27 +0000
commit4540e41e753a7d69ecd3f5bad51fe620205c3a18 (patch)
tree3440800f4fa063300f55f8c47dcff3489782614e /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentHID: wacom: fix crash in wacom_aes_battery_handler() (diff)
downloadkernel-4540e41e753a7d69ecd3f5bad51fe620205c3a18.tar.gz
kernel-4540e41e753a7d69ecd3f5bad51fe620205c3a18.zip
HID: appletb-kbd: fix "appletb_backlight" backlight device reference counting
During appletb_kbd_probe, probe attempts to get the backlight device by name. When this happens backlight_device_get_by_name looks for a device in the backlight class which has name "appletb_backlight" and upon finding a match it increments the reference count for the device and returns it to the caller. However this reference is never released leading to a reference leak. Fix this by decrementing the backlight device reference count on removal via put_device and on probe failure. Fixes: 93a0fc489481 ("HID: hid-appletb-kbd: add support for automatic brightness control while using the touchbar") Cc: [email protected] Signed-off-by: Qasim Ijaz <[email protected]> Reviewed-by: Aditya Garg <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions