mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
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>
This commit is contained in:
parent
c17f5bb529
commit
1d507b3af4
@ -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)
|
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);
|
drm_gem_put_pages(&obj->base, obj->pages, false, false);
|
||||||
obj->pages = NULL;
|
obj->pages = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user