From: Kevin Winchester Date: Tue, 17 Nov 2009 22:38:45 +0000 (-0800) Subject: agp: correct missing cleanup on error in agp_add_bridge X-Git-Tag: v2.6.33-rc4~16^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f50b0222e4c6ac59a5c4819f8be0fa500970381;p=pandora-kernel.git agp: correct missing cleanup on error in agp_add_bridge While investigating a kmemleak detected leak, I encountered the agp_add_bridge function. It appears to be responsible for freeing the agp_bridge_data in the case of a failure, but it is only doing so for some errors. Fix it to always free the bridge data if a failure condition is encountered. Signed-off-by: Kevin Winchester Signed-off-by: Andrew Morton Signed-off-by: Dave Airlie --- Reading git-diff-tree failed