diff options
author | Rob Clark <robdclark@gmail.com> | 2013-12-04 17:45:43 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-05 03:23:38 +0400 |
commit | 1d507b3af40a60e03a3bbc4c897fc2709c075d24 (patch) | |
tree | ee7697fd500b37b4260a596c062829951e1ad7df /drivers/gpu/drm/udl/udl_gem.c | |
parent | c17f5bb529221c7f4c0736e69ceb614da0df2838 (diff) | |
download | linux-1d507b3af40a60e03a3bbc4c897fc2709c075d24.tar.xz |
udl: fix issue with imported prime buffers
5dc9e1e8 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>
Diffstat (limited to 'drivers/gpu/drm/udl/udl_gem.c')
-rw-r--r-- | drivers/gpu/drm/udl/udl_gem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/udl/udl_gem.c b/drivers/gpu/drm/udl/udl_gem.c index 24ffbe990736..8d67b943ac05 100644 --- a/drivers/gpu/drm/udl/udl_gem.c +++ b/drivers/gpu/drm/udl/udl_gem.c @@ -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; } |