diff options
| author | Srinivasan Shanmugam <[email protected]> | 2025-04-17 19:27:19 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-04-22 12:51:46 +0000 |
| commit | 3f397cd203f247879c2f1a061e90d4c8d23655de (patch) | |
| tree | 4781cfb4e52901be48c1cb5d7c50bc268fa14e99 /drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | |
| parent | drm/amdgpu/userq: use consistent function naming (diff) | |
| download | kernel-3f397cd203f247879c2f1a061e90d4c8d23655de.tar.gz kernel-3f397cd203f247879c2f1a061e90d4c8d23655de.zip | |
drm/amd/display: Add NULL pointer checks in dm_force_atomic_commit()
This commit updates the dm_force_atomic_commit function to replace the
usage of PTR_ERR_OR_ZERO with IS_ERR for checking error states after
retrieving the Connector (drm_atomic_get_connector_state), CRTC
(drm_atomic_get_crtc_state), and Plane (drm_atomic_get_plane_state)
states.
The function utilized PTR_ERR_OR_ZERO for error checking. However, this
approach is inappropriate in this context because the respective
functions do not return NULL; they return pointers that encode errors.
This change ensures that error pointers are properly checked using
IS_ERR before attempting to dereference.
Cc: Harry Wentland <[email protected]>
Cc: Nicholas Kazlauskas <[email protected]>
Cc: Tom Chung <[email protected]>
Cc: Roman Li <[email protected]>
Cc: Alex Hung <[email protected]>
Cc: Aurabindo Pillai <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Reviewed-by: Aurabindo Pillai <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c')
0 files changed, 0 insertions, 0 deletions
