Skip to content

Commit

Permalink
udl: fix issue with imported prime buffers
Browse files Browse the repository at this point in the history
5dc9e1e was a bit over-ambitious, and accidentially removed handling
for imported prime buffers.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Rob Clark authored and Dave Airlie committed Dec 4, 2013
1 parent c17f5bb commit 1d507b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/udl/udl_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ static int udl_gem_get_pages(struct udl_gem_object *obj, gfp_t gfpmask)

static void udl_gem_put_pages(struct udl_gem_object *obj)
{
if (obj->base.import_attach) {
drm_free_large(obj->pages);
obj->pages = NULL;
return;
}

drm_gem_put_pages(&obj->base, obj->pages, false, false);
obj->pages = NULL;
}
Expand Down

0 comments on commit 1d507b3

Please sign in to comment.