drm/nouveau/core/memory: fix missing mutex unlock
authorBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 22:37:27 +0000 (08:37 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 23:12:10 +0000 (09:12 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/core/memory.c

index 29f4b4070b5579e6d48b9ab2864a60f25fdec1c6..e85a08ecd9da578d51fd778f171ea07e55bf9bb1 100644 (file)
@@ -64,6 +64,7 @@ nvkm_memory_tags_get(struct nvkm_memory *memory, struct nvkm_device *device,
                }
 
                refcount_inc(&tags->refcount);
+               mutex_unlock(&fb->subdev.mutex);
                *ptags = tags;
                return 0;
        }