Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae3a27d1 authored by Dave Airlie's avatar Dave Airlie Committed by Alex Deucher
Browse files

amdgpu/dm: don't use after free.



This dereference acrtc after freeing it.

Found by the kfree cocci script.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d029810c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}