Commit 28a201e2 authored by Daniel Vetter's avatar Daniel Vetter Committed by Sasha Levin

drm/udl: Use unlocked gem unreferencing

[ Upstream commit 72b9ff06 ]

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: stable@vger.kernel.org
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent da38a239
...@@ -546,7 +546,7 @@ static int udlfb_create(struct drm_fb_helper *helper, ...@@ -546,7 +546,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;
} }
......
...@@ -52,7 +52,7 @@ udl_gem_create(struct drm_file *file, ...@@ -52,7 +52,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