etnaviv: fix gem object list corruption
authorLucas Stach <l.stach@pengutronix.de>
Mon, 11 Sep 2017 13:29:31 +0000 (15:29 +0200)
committerpopcornmix <popcornmix@gmail.com>
Fri, 6 Oct 2017 12:06:51 +0000 (13:06 +0100)
commitd614581d66b592a6fad37e2676b82a5c6dd9716d
treedd23face55fd6902ec2247f2cc2f68a9dda3395b
parentf4da23d6fb479cbc3af75eb2e5ba166fe57adf68
etnaviv: fix gem object list corruption

commit 518417525f3652c12fb5fad6da4ade66c0072fa3 upstream.

All manipulations of the gem_object list need to be protected by
the list mutex, as GEM objects can be created and freed in parallel.
This fixes a kernel memory corruption.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/etnaviv/etnaviv_gem.c