From: Ben Skeggs Date: Thu, 23 Jan 2020 03:55:19 +0000 (+1000) Subject: drm/nouveau: zero vma pointer even if we only unreference it rather than free X-Git-Tag: baikal/aarch64/sdk6.1~10089^2^2~7 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=54a1c8bb9db6136383be98aa89d395e22e68844c;p=kernel.git 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 --- diff --git a/drivers/gpu/drm/nouveau/nouveau_vmm.c b/drivers/gpu/drm/nouveau/nouveau_vmm.c index 77061182a1cfc..b28c7dc13ad6d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_vmm.c +++ b/drivers/gpu/drm/nouveau/nouveau_vmm.c @@ -69,8 +69,8 @@ nouveau_vma_del(struct nouveau_vma **pvma) } list_del(&vma->head); kfree(*pvma); - *pvma = NULL; } + *pvma = NULL; } int