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

Commit f4e65efc authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/ltc: protect clearing of comptags with mutex



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org
parent 64373e4b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -47,8 +47,10 @@ nvkm_ltc_tags_clear(struct nvkm_ltc *ltc, u32 first, u32 count)

	BUG_ON((first > limit) || (limit >= ltc->num_tags));

	mutex_lock(&ltc->subdev.mutex);
	ltc->func->cbc_clear(ltc, first, limit);
	ltc->func->cbc_wait(ltc);
	mutex_unlock(&ltc->subdev.mutex);
}

int