提交 4ef92892 编写于 作者: B Ben Skeggs

drm/nouveau: fix obvious memory leak

fdo#104340.
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 74a39954
......@@ -67,8 +67,8 @@ nouveau_vma_del(struct nouveau_vma **pvma)
nvif_vmm_put(&vma->vmm->vmm, &tmp);
}
list_del(&vma->head);
*pvma = NULL;
kfree(*pvma);
*pvma = NULL;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册