]> git.baikalelectronics.ru Git - 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)
commit730f4ebd342c007d663530b6b82f12fa3fa7add8
treefe03dceda8c142e5d18adcb0619afeeafd3f06e9
parent571e3280f2858d8041e67cb2165a7f4d11d69fdd
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