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

Skip to content
Commit 0f58411d authored by Ilia Mirkin's avatar Ilia Mirkin Committed by Dave Airlie
Browse files

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



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 8f6599da (drm: delay minor
destruction to drm_dev_free()). Instead unplug them.

Signed-off-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Reported-and-tested-by: default avatarBruno Prémont <bonbons@linux-vserver.org>
Reviewed-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 0ca9fff7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment