Files
linux/drivers/gpu/drm
Srinivasan Shanmugam cd9e9e0852 drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)
This commit adds a null check for the 'afb' variable in the
amdgpu_dm_plane_handle_cursor_update function. Previously, 'afb' was
assumed to be null, but was used later in the code without a null check.
This could potentially lead to a null pointer dereference.

Changes since v1:
- Moved the null check for 'afb' to the line where 'afb' is used. (Alex)

Fixes the below:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1298 amdgpu_dm_plane_handle_cursor_update() error: we previously assumed 'afb' could be null (see line 1252)

Cc: Tom Chung <chiahsuan.chung@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Roman Li <roman.li@amd.com>
Cc: Alex Hung <alex.hung@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Co-developed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-08-13 10:44:24 -04:00
..
2024-07-05 10:47:28 +02:00
2023-11-27 13:56:32 -06:00
2024-07-05 10:47:28 +02:00
2024-06-17 08:02:48 -03:00
2024-07-05 10:47:28 +02:00
2024-05-02 11:33:17 +02:00
2024-07-05 10:47:28 +02:00
2024-07-05 10:47:28 +02:00
2024-05-02 11:33:18 +02:00
2024-06-18 10:06:35 +02:00
2024-05-02 11:33:22 +02:00
2024-07-05 10:47:28 +02:00
2024-04-25 20:55:49 -07:00
2024-06-17 10:38:18 +03:00
2024-05-08 15:31:58 +03:00
2024-07-05 10:47:28 +02:00
2024-06-24 17:08:53 +03:00
2024-06-06 14:46:15 -04:00
2024-02-26 11:41:07 +01:00
2024-07-05 10:47:28 +02:00