OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9326e6f
)
drm/vc4: Fix oops when userspace hands in a bad BO.
author
Eric Anholt
<eric@anholt.net>
Tue, 26 Jul 2016 20:47:15 +0000
(13:47 -0700)
committer
Eric Anholt
<eric@anholt.net>
Sat, 20 Aug 2016 02:17:39 +0000
(19:17 -0700)
We'd end up NULL pointer dereferencing because we didn't take the
error path out in the parent. Fixes igt vc4_lookup_fail test.
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
fba2c83
..
b262c5c
100644
(file)
--- a/
drivers/gpu/drm/vc4/vc4_gem.c
+++ b/
drivers/gpu/drm/vc4/vc4_gem.c
@@
-573,7
+573,7
@@
vc4_cl_lookup_bos(struct drm_device *dev,
fail:
drm_free_large(handles);
- return
0
;
+ return
ret
;
}
static int