]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/nouveau: fix nouveau_client allocation failure path
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Mon, 10 Dec 2012 20:59:52 +0000 (21:59 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 13 Jan 2013 08:07:44 +0000 (18:07 +1000)
commitdd5700ea98ad0b375a72525ce7d7edddf15b2693
treefe03dceda8c142e5d18adcb0619afeeafd3f06e9
parent82c805abb20946dcb343cd607327e4d720bf6b28
drm/nouveau: fix nouveau_client allocation failure path

Depending on the point of failure, freed object would be returned
or memory leak would happen.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/core/client.c
drivers/gpu/drm/nouveau/core/include/core/client.h
drivers/gpu/drm/nouveau/nouveau_drm.c