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

Commit cbb4cf8b authored by Samuel Pitoiset's avatar Samuel Pitoiset Committed by Ben Skeggs
Browse files

drm/nouveau/perfmon: do not forget to destroy the engine context



This fixes a crash when we reload Nouveau DRM.

Signed-off-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent fd1496a0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -303,6 +303,7 @@ nouveau_perfctx_dtor(struct nouveau_object *object)
{
	struct nouveau_perfmon *ppm = (void *)object->engine;
	mutex_lock(&nv_subdev(ppm)->mutex);
	nouveau_engctx_destroy(&ppm->context->base);
	ppm->context = NULL;
	mutex_unlock(&nv_subdev(ppm)->mutex);
}