diff options
-rw-r--r-- | drivers/mfd/glamo/glamo-buffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mfd/glamo/glamo-buffer.c b/drivers/mfd/glamo/glamo-buffer.c index 815495e1d7f..abf867530aa 100644 --- a/drivers/mfd/glamo/glamo-buffer.c +++ b/drivers/mfd/glamo/glamo-buffer.c @@ -230,8 +230,10 @@ int glamo_ioctl_gem_mmap(struct drm_device *dev, void *data, gobj = obj->driver_private; if (!gobj->mmap_offset) { ret = glamo_gem_create_mmap_offset(obj); - if (ret) + if (ret) { + mutex_unlock(&dev->struct_mutex); return ret; + } } args->offset = gobj->mmap_offset; |