Skip to content

Commit 4c9ee1b

Browse files
author
Ben Skeggs
committed
drm/nouveau: zero vma pointer even if we only unreference it rather than free
I'm not sure this affects anything, but best be safe. Signed-off-by: Ben Skeggs <[email protected]>
1 parent 742db30 commit 4c9ee1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nouveau_vmm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ nouveau_vma_del(struct nouveau_vma **pvma)
6969
}
7070
list_del(&vma->head);
7171
kfree(*pvma);
72-
*pvma = NULL;
7372
}
73+
*pvma = NULL;
7474
}
7575

7676
int

0 commit comments

Comments
 (0)