drm/nouveau: fix a memory leak.
Subsystems (3)
PATCH 1/1 drm/nouveau: fix a memory leak.
When cleanup extra stat if this object was a notifier,it should free the notifier.
Signed-off-by Jianpeng Ma <[email protected]>
--- drivers/gpu/drm/nouveau/nouveau_abi16.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/nouveau/nouveau_abi16.c +1 -2
@@ -483,8 +483,7 @@ nouveau_abi16_ioctl_gpuobj_free(ABI16_IOCTL_ARGS)/* cleanup extra state if this object was a notifier */ list_for_each_entry (ntfy, &chan->notifiers, head) {if (ntfy->handle == fini->handle) { -nouveau_mm_free (&chan->heap, &ntfy->node); -list_del (&ntfy->head); +nouveau_abi16_ntfy_fini (chan, ntfy);break ; } }
Signature · 1 line
1.8.1.2