Commit 068149ad authored by Daniel Vetter's avatar Daniel Vetter

drm/qxl: Use unlocked gem unreferencing

For drm_gem_object_unreference callers are required to hold
dev->struct_mutex, which these paths don't. Enforcing this requirement
has become a bit more strict with

commit ef4c6270
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Oct 15 09:36:25 2015 +0200

    drm/gem: Check locking in drm_gem_object_unreference

Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459330852-27668-4-git-send-email-daniel.vetter@ffwll.ch
Link: http://patchwork.freedesktop.org/patch/msgid/1459330852-27668-5-git-send-email-daniel.vetter@ffwll.ch
parent 5bb682c4
...@@ -443,11 +443,11 @@ static int qxlfb_create(struct qxl_fbdev *qfbdev, ...@@ -443,11 +443,11 @@ static int qxlfb_create(struct qxl_fbdev *qfbdev,
} }
} }
if (fb && ret) { if (fb && ret) {
drm_gem_object_unreference(gobj); drm_gem_object_unreference_unlocked(gobj);
drm_framebuffer_cleanup(fb); drm_framebuffer_cleanup(fb);
kfree(fb); kfree(fb);
} }
drm_gem_object_unreference(gobj); drm_gem_object_unreference_unlocked(gobj);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment