Kevin Winchester 3f50b0222e 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 <kjwinchester@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-01-11 15:09:01 +10:00
..
2009-06-11 08:51:01 -07:00
2009-10-04 15:05:10 -07:00
2009-09-24 07:21:03 -07:00
2009-09-22 07:17:42 -07:00
2009-10-09 12:18:18 +11:00
2009-07-12 12:22:34 -07:00
2009-10-01 16:11:16 -07:00
2009-10-04 15:05:10 -07:00
2009-06-18 11:16:55 +10:00
2009-09-15 08:42:00 -07:00
2009-09-27 11:39:25 -07:00
2009-09-23 07:39:29 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 12:22:34 -07:00
2009-06-18 13:03:54 -07:00
2009-10-11 11:20:58 -07:00
2009-09-19 13:13:37 -07:00
2009-07-12 12:22:34 -07:00
2009-06-11 08:51:01 -07:00
2009-07-12 12:22:34 -07:00
2009-09-01 01:13:31 -07:00
2009-09-01 01:13:31 -07:00
2009-09-01 01:13:31 -07:00
2009-07-03 15:45:29 +01:00
2009-06-11 08:51:02 -07:00
2009-09-19 13:13:35 -07:00
2009-09-19 13:13:35 -07:00