]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/vc4: Return -EINVAL on the overflow checks failing.
authorEric Anholt <eric@anholt.net>
Tue, 17 Jan 2017 10:58:06 +0000 (21:58 +1100)
committerEric Anholt <eric@anholt.net>
Tue, 17 Jan 2017 11:06:01 +0000 (22:06 +1100)
commit6b8ac63847bc2f958dd93c09edc941a0118992d9
treed31e0103c67cb68ac11065598808627c1c76ea5c
parent0f2ff82e11c86c05d051cae32b58226392d33bbf
drm/vc4: Return -EINVAL on the overflow checks failing.

By failing to set the errno, we'd continue on to trying to set up the
RCL, and then oops on trying to dereference the tile_bo that binning
validation should have set up.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: d5b1a78a772f ("drm/vc4: Add support for drawing 3D frames.")
drivers/gpu/drm/vc4/vc4_gem.c