Skip to content

Commit 1bc8ffb

Browse files
Harry Wentlandalexdeucher
authored andcommitted
Revert "drm/amd/display: fix dereferencing possible ERR_PTR()"
This reverts commit cd2d6c9. Cc: Shirish S <[email protected]> Cc: Alex Deucher <[email protected]> Cc: [email protected] Reviewed-by: Michel Dänzer <[email protected]> Signed-off-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent b2f3f59 commit 1bc8ffb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4864,9 +4864,6 @@ static int dm_atomic_check_plane_state_fb(struct drm_atomic_state *state,
48644864
return -EDEADLK;
48654865

48664866
crtc_state = drm_atomic_get_crtc_state(plane_state->state, crtc);
4867-
if (IS_ERR(crtc_state))
4868-
return PTR_ERR(crtc_state);
4869-
48704867
if (crtc->primary == plane && crtc_state->active) {
48714868
if (!plane_state->fb)
48724869
return -EINVAL;

0 commit comments

Comments
 (0)