[PATCH 3/3] amdgpu/dm: don't use after free.
Harry Wentland
harry.wentland at amd.com
Tue Oct 3 15:17:34 UTC 2017
On 2017-10-03 12:27 AM, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This dereference acrtc after freeing it.
>
> Found by the kfree cocci script.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
Series is
Reviewed-by: Harry Wentland <harry.wentland at amd.com>
Harry
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 -
> 1 file changed, 1 deletion(-)
>
> 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 61ccddd..4f89731 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;
> }
>
>
More information about the amd-gfx
mailing list