video: fbdev: savage: fix memory leak on error handling path in probe
[linux-2.6-microblaze.git] / drivers / video / fbdev / savage / savagefb_driver.c
index 3c8ae87..3fd87ae 100644 (file)
@@ -2157,6 +2157,8 @@ static int savage_init_fb_info(struct fb_info *info, struct pci_dev *dev,
                        info->flags |= FBINFO_HWACCEL_COPYAREA |
                                       FBINFO_HWACCEL_FILLRECT |
                                       FBINFO_HWACCEL_IMAGEBLIT;
+               else
+                       kfree(info->pixmap.addr);
        }
 #endif
        return err;