[PATCH] drm: hdlcd: Unwind the DRM setup on error conditions in the right order.

2016-06-13 Thread Liviu Dudau
On Mon, Jun 13, 2016 at 12:02:31PM +0100, Robin Murphy wrote: > On 08/06/16 13:56, Liviu Dudau wrote: > >In hdlcd_drm_bind()/hdlcd_drm_unbind() we unwind the DRM setup in the > >wrong order (drm_mode_config_cleanup() before connector and encoder > >had a chance to cleanup their memory or before drm

[PATCH] drm: hdlcd: Unwind the DRM setup on error conditions in the right order.

2016-06-13 Thread Robin Murphy
On 08/06/16 13:56, Liviu Dudau wrote: > In hdlcd_drm_bind()/hdlcd_drm_unbind() we unwind the DRM setup in the > wrong order (drm_mode_config_cleanup() before connector and encoder > had a chance to cleanup their memory or before drm_dev_unregister()). > The correct order should match in both functi

[PATCH] drm: hdlcd: Unwind the DRM setup on error conditions in the right order.

2016-06-08 Thread Liviu Dudau
In hdlcd_drm_bind()/hdlcd_drm_unbind() we unwind the DRM setup in the wrong order (drm_mode_config_cleanup() before connector and encoder had a chance to cleanup their memory or before drm_dev_unregister()). The correct order should match in both functions. Reported-by: Robin Murphy Signed-off-by