diff options
author | Hans de Goede <[email protected]> | 2023-03-12 20:17:46 +0100 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-03-22 00:47:59 -0400 |
commit | 4db231d7dd80163fd251635f81280f1c93a393ab (patch) | |
tree | 5af93e66d19f1d91ddaab4c9933028468556db9b /drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | |
parent | 5957a967599360477529ebd593e03f973dcb5fb2 (diff) |
drm/amd/display/amdgpu_dm: Fix backlight_device_register() error handling
backlight_device_register() returns an ERR_PTR on error, but other code
such as amdgpu_dm_connector_destroy() assumes dm->backlight_dev[i] is NULL
if no backlight is registered.
Clear dm->backlight_dev[i] on registration failure, to avoid other code
trying to deref an ERR_PTR pointer.
Reviewed-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c')
0 files changed, 0 insertions, 0 deletions