Re: [Nouveau] [PATCH] drm/nouveau/vm: fix memory corruption when pgt allocation fails

2012-12-24 Thread Marcin Slusarz
On Thu, Dec 20, 2012 at 11:37:09PM +0100, Marcin Slusarz wrote: > If we return freed vm, nouveau_drm_open will happily call nouveau_cli_destroy, > which will try to free it again. > > Reported-by: Peter Hurley > Signed-off-by: Marcin Slusarz > --- BTW, this fixes https://bugs.freedesktop.org/sh

[Nouveau] [PATCH] drm/nouveau/vm: fix memory corruption when pgt allocation fails

2012-12-20 Thread Marcin Slusarz
If we return freed vm, nouveau_drm_open will happily call nouveau_cli_destroy, which will try to free it again. Reported-by: Peter Hurley Signed-off-by: Marcin Slusarz --- drivers/gpu/drm/nouveau/core/subdev/vm/base.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/driver