diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2013-12-05 09:42:49 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-13 13:03:50 +1000 |
commit | 0f58411d4fd704d8958879fb08751eae3573271b (patch) | |
tree | fb5459f2bfd56398029c0184b17a68f8e309035c /sound/sound_core.c | |
parent | 0ca9fff744c8ae22401d1ef10a378588afd55abc (diff) | |
download | blackbird-op-linux-0f58411d4fd704d8958879fb08751eae3573271b.tar.gz blackbird-op-linux-0f58411d4fd704d8958879fb08751eae3573271b.zip |
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 8f6599da8e (drm: delay minor
destruction to drm_dev_free()). Instead unplug them.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reported-and-tested-by: Bruno Prémont <bonbons@linux-vserver.org>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'sound/sound_core.c')
0 files changed, 0 insertions, 0 deletions