]> git.karo-electronics.de Git - linux-beck.git/commit
drm/vc4: Fix oops when userspace hands in a bad BO.
authorEric Anholt <eric@anholt.net>
Tue, 26 Jul 2016 20:47:15 +0000 (13:47 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 20 Aug 2016 02:17:39 +0000 (19:17 -0700)
commit552416c146fadc67cd9b53ef7adf88d3381c43a6
tree99e37ece2f7ef9c144a03d28dfae103c16695680
parent9326e6f25574bbb8bd48206d245654780e3fd665
drm/vc4: Fix oops when userspace hands in a bad BO.

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