DSS2: Small VRFB context allocation bug fixed
authorVaibhav Hiremath <hvaibhav@ti.com>
Tue, 31 Mar 2009 13:17:32 +0000 (18:47 +0530)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 1 May 2009 16:44:58 +0000 (19:44 +0300)
This is minor bug while requesting and mapping memory for
VRFB space.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
drivers/video/omap2/omapfb/omapfb-main.c

index 852abe5..44febef 100644 (file)
@@ -1193,6 +1193,7 @@ static int omapfb_alloc_fbmem(struct fb_info *fbi, unsigned long size,
 
                if(!va) {
                        printk(KERN_ERR "vrfb: ioremap failed\n");
 
                if(!va) {
                        printk(KERN_ERR "vrfb: ioremap failed\n");
+                       omap_vrfb_release_ctx(&rg->vrfb);
                        return -ENOMEM;
                }
 
                        return -ENOMEM;
                }