OSDN Git Service

broadcom/vc4: Fix use-after-free for flushing when writing to a texture.
authorEric Anholt <eric@anholt.net>
Mon, 18 Sep 2017 21:52:32 +0000 (14:52 -0700)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 20 Sep 2017 20:54:11 +0000 (22:54 +0200)
commit727a6a8cddaf31ab422dde649752c9cbee54c7c6
tree91740cc23441b7eca24156338d54eb423f40320a
parent700099df4f015d575b85b642ff9d2032402de497
broadcom/vc4: Fix use-after-free for flushing when writing to a texture.

I was trying to continue the hash table loop, not the inner loop.  This
tended to work out, because we would have *just* freed the job struct.
Fixes some valgrind failures in fbo-depthtex.

Fixes: f597ac396640 ("vc4: Implement job shuffling")
(cherry picked from commit d88a75182d5fccb956fbfccddf627aa1831465be)
src/gallium/drivers/vc4/vc4_job.c