drm/sprd: fix locking usage
authorJoonyoung Shim <jy0922.shim@samsung.com>
Mon, 11 Jan 2016 03:08:13 +0000 (12:08 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 13 Jan 2016 01:29:24 +0000 (10:29 +0900)
This fixes locking usage made by backporting patchse to solve dma-buf
issue.

Change-Id: I99c3792cecc5e9974b1fb7c321d8c963de411ea4
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/gpu/drm/sprd/sprd_drm_gem.c

index e33b909..a2a3c9c 100755 (executable)
@@ -767,9 +767,9 @@ void *sprd_drm_gem_get_obj_addr(unsigned int name, unsigned int index)
        struct sprd_drm_gem_buf *buf;
        int domain_num = 0;
 
-       spin_lock(&sprd_drm_dev->object_name_lock);
+       mutex_lock(&sprd_drm_dev->object_name_lock);
        obj = idr_find(&sprd_drm_dev->object_name_idr, (int) name);
-       spin_unlock(&sprd_drm_dev->object_name_lock);
+       mutex_unlock(&sprd_drm_dev->object_name_lock);
 
        if (!obj) {
                DRM_ERROR("name[%d]failed to lookup gem object.\n", name);