提交 72b9ff06 编写于 作者: D Daniel Vetter 提交者: Dave Airlie

drm/udl: 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: stable@vger.kernel.org
Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 7779c5e2
...@@ -536,7 +536,7 @@ static int udlfb_create(struct drm_fb_helper *helper, ...@@ -536,7 +536,7 @@ static int udlfb_create(struct drm_fb_helper *helper,
out_destroy_fbi: out_destroy_fbi:
drm_fb_helper_release_fbi(helper); drm_fb_helper_release_fbi(helper);
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册