drm/udl: unlock before returning in udl_gem_mmap()
If we hit an error here, then we should unlock and unreference obj before returning. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
c4c7f3149b
commit
ace281e8ab
@ -234,7 +234,7 @@ int udl_gem_mmap(struct drm_file *file, struct drm_device *dev,
|
||||
|
||||
ret = udl_gem_get_pages(gobj, GFP_KERNEL);
|
||||
if (ret)
|
||||
return ret;
|
||||
goto out;
|
||||
if (!gobj->base.map_list.map) {
|
||||
ret = drm_gem_create_mmap_offset(obj);
|
||||
if (ret)
|
||||
|
Loading…
Reference in New Issue
Block a user