drm/nouveau/vm: fix memory corruption when pgt allocation fails
authorMarcin Slusarz <[email protected]>
Mon, 10 Dec 2012 20:30:51 +0000 (21:30 +0100)
committerBen Skeggs <[email protected]>
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 <[email protected]>
Signed-off-by: Marcin Slusarz <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
drivers/gpu/drm/nouveau/core/subdev/vm/base.c