Skip to content

Commit

Permalink
drm/udl: unlock before returning in udl_gem_mmap()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Dave Airlie committed May 29, 2012
1 parent c4c7f31 commit ace281e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/udl/udl_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ace281e

Please sign in to comment.