Commit 057358a0 authored by Daniel Vetter's avatar Daniel Vetter Committed by Ben Hutchings

drm/udl: Use unlocked gem unreferencing

commit 72b9ff06 upstream.

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
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 58f64e3e
...@@ -545,7 +545,7 @@ static int udlfb_create(struct drm_fb_helper *helper, ...@@ -545,7 +545,7 @@ static int udlfb_create(struct drm_fb_helper *helper,
return ret; return ret;
out_gfree: out_gfree:
drm_gem_object_unreference(&ufbdev->ufb.obj->base); drm_gem_object_unreference_unlocked(&ufbdev->ufb.obj->base);
out: out:
return ret; return ret;
} }
......
...@@ -51,7 +51,7 @@ udl_gem_create(struct drm_file *file, ...@@ -51,7 +51,7 @@ udl_gem_create(struct drm_file *file,
return ret; return ret;
} }
drm_gem_object_unreference(&obj->base); drm_gem_object_unreference_unlocked(&obj->base);
*handle_p = handle; *handle_p = handle;
return 0; return 0;
} }
......
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