mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 04:54:41 +08:00
drm/nouveau/perfmon: do not forget to destroy the engine context
This fixes a crash when we reload Nouveau DRM. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
fd1496a0fc
commit
cbb4cf8bdf
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user