aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-10-03 14:27:15 +1000
committerAlex Deucher <[email protected]>2017-10-06 13:05:22 -0400
commitae3a27d19b59e431aea9f9d5917c1aec710ae4c3 (patch)
tree97a95e5963360c8d91c08ec7fc0af7ea590cb27f
parentd029810caafa4e6b146274560154e3f0f0381fb5 (diff)
amdgpu/dm: don't use after free.
This dereference acrtc after freeing it. Found by the kfree cocci script. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 61ccddd19718..4f8973182f8a 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -3174,7 +3174,6 @@ int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm,
fail:
kfree(acrtc);
kfree(cursor_plane);
- acrtc->crtc_id = -1;
return res;
}