mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
udl: fix issue with imported prime buffers
commit1d507b3af4upstream.5dc9e1e8was a bit over-ambitious, and accidentially removed handling for imported prime buffers. Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Cc: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
707ac20e93
commit
02552ad06e
@@ -132,6 +132,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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user