Boris Brezillon aed44cbeae drm/panfrost: Fix a race in panfrost_gem_free_object()
panfrost_gem_shrinker_scan() might purge a BO (release the sgt and
kill the GPU mapping) that's being freed by panfrost_gem_free_object()
if we don't remove the BO from the shrinker list at the beginning of
panfrost_gem_free_object().

Fixes: 013b65101315 ("drm/panfrost: Add madvise and shrinker support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191129135908.2439529-5-boris.brezillon@collabora.com
2019-12-06 11:06:16 -06:00
..
2019-10-23 11:14:11 -04:00
2019-08-14 18:31:10 +02:00
2019-10-24 17:59:45 +02:00
2019-10-04 17:04:05 +01:00
2019-10-03 16:38:50 +02:00
2019-09-19 16:24:24 -07:00
2019-06-30 09:48:05 +02:00
2019-11-13 15:34:15 -05:00
2019-10-23 12:10:05 +02:00
2019-07-17 12:52:55 +02:00
2019-06-05 20:31:04 +02:00
2019-07-15 18:11:31 +02:00
2019-06-05 20:29:57 +02:00
2019-09-16 15:14:43 +02:00
2019-07-17 12:52:55 +02:00
2019-10-11 09:30:53 +10:00
2019-11-04 09:28:51 +10:00
2019-10-23 11:14:11 -04:00
2019-07-22 21:24:10 +02:00
2019-10-08 18:29:00 +02:00
2019-06-19 12:07:29 +02:00
2019-11-15 08:00:08 +01:00
2019-07-22 21:24:10 +02:00
2019-06-19 12:07:29 +02:00
2019-09-19 16:24:24 -07:00
2019-10-02 16:28:55 +03:00
2019-10-03 16:38:50 +02:00