aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vc4/vc4_gem.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-07-26 13:47:10 -0700
committerEric Anholt <eric@anholt.net>2016-08-19 19:15:19 -0700
commitd5fb46e0e3b7e49ee83ba92efc3ab4e1a545ecc1 (patch)
tree83516ac13ea75e3c8d6ddb983df930c9011bada8 /drivers/gpu/drm/vc4/vc4_gem.c
parentLinux 4.8-rc1 (diff)
downloadlinux-dev-d5fb46e0e3b7e49ee83ba92efc3ab4e1a545ecc1.tar.xz
linux-dev-d5fb46e0e3b7e49ee83ba92efc3ab4e1a545ecc1.zip
drm/vc4: Use drm_free_large() on handles to match its allocation.
If you managed to exceed the limit to switch to vmalloc, we'd use the wrong free. Signed-off-by: Eric Anholt <eric@anholt.net> Fixes: d5b1a78a772f ("drm/vc4: Add support for drawing 3D frames.") Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_gem.c')
-rw-r--r--drivers/gpu/drm/vc4/vc4_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_gem.c b/drivers/gpu/drm/vc4/vc4_gem.c
index 6155e8aca1c6..62df61f9ac24 100644
--- a/drivers/gpu/drm/vc4/vc4_gem.c
+++ b/drivers/gpu/drm/vc4/vc4_gem.c
@@ -572,7 +572,7 @@ vc4_cl_lookup_bos(struct drm_device *dev,
spin_unlock(&file_priv->table_lock);
fail:
- kfree(handles);
+ drm_free_large(handles);
return 0;
}