diff options
Diffstat (limited to 'drivers/char/agp')
-rw-r--r-- | drivers/char/agp/parisc-agp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/agp/parisc-agp.c b/drivers/char/agp/parisc-agp.c index 1c129211302d..17e380f5f818 100644 --- a/drivers/char/agp/parisc-agp.c +++ b/drivers/char/agp/parisc-agp.c | |||
@@ -358,8 +358,12 @@ parisc_agp_setup(void __iomem *ioc_hpa, void __iomem *lba_hpa) | |||
358 | bridge->dev = fake_bridge_dev; | 358 | bridge->dev = fake_bridge_dev; |
359 | 359 | ||
360 | error = agp_add_bridge(bridge); | 360 | error = agp_add_bridge(bridge); |
361 | if (error) | ||
362 | goto fail; | ||
363 | return 0; | ||
361 | 364 | ||
362 | fail: | 365 | fail: |
366 | kfree(fake_bridge_dev); | ||
363 | return error; | 367 | return error; |
364 | } | 368 | } |
365 | 369 | ||