drm/nouveau: do not leak in nv20_graph_create
authorJesper Juhl <jj@chaosbits.net>
Sun, 3 Jul 2011 23:46:53 +0000 (09:46 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 24 Jul 2011 23:40:52 +0000 (09:40 +1000)
commit1541fa854273abee954ec4ca4ad65fe4ceb9e626
tree01e83ad9133a11d78b73c3999906119c77d34204
parent88c8431cbbccdb9ef7c13f0ba18022e2cb35c7f7
drm/nouveau: do not leak in nv20_graph_create

If we return due to an unknown chipset in
drivers/gpu/drm/nouveau/nv20_graph.c:nv20_graph_create() we'll leak the
memory allocated to 'pgraph'.

This patch should fix the leak.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Reviewed-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv20_graph.c