]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[AGPGART] Prevent (unlikely) memory leak in amd_create_gatt_pages()
authorDave Jones <davej@redhat.com>
Sun, 28 Jan 2007 22:39:19 +0000 (17:39 -0500)
committerDave Jones <davej@redhat.com>
Sun, 28 Jan 2007 22:39:19 +0000 (17:39 -0500)
commitc30efbaeaa9297fb1a35ef952350e0c2bb7a3d47
tree66d369f957a04845883929662cb3d1151ece8923
parent4b95320fc4d21b0ff2f8604305dd6c851aff6096
[AGPGART] Prevent (unlikely) memory leak in amd_create_gatt_pages()

If we fail an alloc, unwind the previous allocs that succeeded.

Spotted-by: Alan Grimes <agrimes@speakeasy.net>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/char/agp/amd-k7-agp.c