[PATCH] drm: don't double-free on driver load error

2013-12-05 Thread David Herrmann
Hi On Thu, Dec 5, 2013 at 1:19 AM, Ilia Mirkin wrote: > All instances of drm_dev_register are followed by drm_dev_free on > failure. Don't free dev->control/render/primary on failure, as they will > be freed by drm_dev_free since commit 8f6599da8e (drm: delay minor > destruction to drm_dev_free()

[PATCH] drm: don't double-free on driver load error

2013-12-04 Thread Ilia Mirkin
All instances of drm_dev_register are followed by drm_dev_free on failure. Don't free dev->control/render/primary on failure, as they will be freed by drm_dev_free since commit 8f6599da8e (drm: delay minor destruction to drm_dev_free()). Reported-by: Bruno Pr?mont Signed-off-by: Ilia Mirkin ---