Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 339073ef authored by Lucas Stach's avatar Lucas Stach
Browse files

drm/etnaviv: hold object lock while getting pages for coredump



While all objects that get coredumped have an active IOVA and thus
pages already populated, etnaviv_gem_get_pages() still requires the
object lock to be held.

Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent 23a9d5dc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -201,7 +201,9 @@ void etnaviv_core_dump(struct etnaviv_gpu *gpu)

		obj = vram->object;

		mutex_lock(&obj->lock);
		pages = etnaviv_gem_get_pages(obj);
		mutex_unlock(&obj->lock);
		if (pages) {
			int j;