drm/nouveau/fault/gv100-: fix memory leak on module unload
authorBen Skeggs <bskeggs@redhat.com>
Tue, 14 Jan 2020 20:34:21 +0000 (06:34 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 15 Jan 2020 00:50:25 +0000 (10:50 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/fault/base.c

index 1c4b852..f6dca97 100644 (file)
@@ -146,6 +146,7 @@ nvkm_fault_dtor(struct nvkm_subdev *subdev)
        struct nvkm_fault *fault = nvkm_fault(subdev);
        int i;
 
+       nvkm_notify_fini(&fault->nrpfb);
        nvkm_event_fini(&fault->event);
 
        for (i = 0; i < fault->buffer_nr; i++) {