etnaviv: fix gem object list corruption
authorLucas Stach <l.stach@pengutronix.de>
Mon, 11 Sep 2017 13:29:31 +0000 (15:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2017 07:44:03 +0000 (09:44 +0200)
commit46f062e05920a4d40dbe32aa4bc622df33db6fb2
tree6e102e27cbb7751224042fe7005c966230876eb7
parent02c7d98bec6cf34ee7079fa503faffc82e17f575
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