]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf21fe78156930b7a5e37be955b82547c170e46ed
tree71cf4e45fd5e0d57ffe3d0c72e95336989b2c3c5
parent1f4c99ced36d31330fe37b96be0abf40622e75d3
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