amdgpu/dm: don't use after free.
authorDave Airlie <airlied@redhat.com>
Tue, 3 Oct 2017 04:27:15 +0000 (14:27 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Oct 2017 17:05:22 +0000 (13:05 -0400)
commitae3a27d19b59e431aea9f9d5917c1aec710ae4c3
tree97a95e5963360c8d91c08ec7fc0af7ea590cb27f
parentd029810caafa4e6b146274560154e3f0f0381fb5
amdgpu/dm: don't use after free.

This dereference acrtc after freeing it.

Found by the kfree cocci script.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c