projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29b4817
)
drm/vc4: Use drm_free_large() on handles to match its allocation.
author
Eric Anholt
<eric@anholt.net>
Tue, 26 Jul 2016 20:47:10 +0000
(13:47 -0700)
committer
Eric Anholt
<eric@anholt.net>
Sat, 20 Aug 2016 02:15:19 +0000
(19:15 -0700)
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
drivers/gpu/drm/vc4/vc4_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vc4/vc4_gem.c
b/drivers/gpu/drm/vc4/vc4_gem.c
index 6155e8aca1c6490039f14cd8addcf467a7de8eb4..62df61f9ac24ebe3709d25f2b28649b2aa4ec2fb 100644
(file)
--- 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:
-
kfre
e(handles);
+
drm_free_larg
e(handles);
return 0;
}