drm/nouveau/vm: fix memory corruption when pgt allocation fails
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Mon, 10 Dec 2012 20:30:51 +0000 (21:30 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 13 Jan 2013 08:07:40 +0000 (18:07 +1000)
commitcfd376b6bfccf33782a0748a9c70f7f752f8b869
tree71cf4e45fd5e0d57ffe3d0c72e95336989b2c3c5
parent4c4101d29fb6c63f78791d02c437702b11e1d4f0
drm/nouveau/vm: fix memory corruption when pgt allocation fails

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 <peter@hurleysoftware.com>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/vm/base.c