On 2017-10-03 12:27 AM, Dave Airlie wrote: > From: Dave Airlie <airl...@redhat.com> > > This dereference acrtc after freeing it. > > Found by the kfree cocci script. > > Signed-off-by: Dave Airlie <airl...@redhat.com>
Series is Reviewed-by: Harry Wentland <harry.wentl...@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; > } > > _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx