[PATCH] epson1355fb.c, kernel 2.6.21-rc6-git3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm attaching a fix for the error handling code in epson1355fb.c.

Roland
epson1355fb.c: Fixes error handling code

--- drivers/video/epson1355fb.c.orig	2007-04-10 14:01:48.000000000 +0200
+++ drivers/video/epson1355fb.c	2007-04-10 14:02:17.000000000 +0200
@@ -650,9 +650,10 @@
 	}
 
 	info = framebuffer_alloc(sizeof(struct epson1355_par) + sizeof(u32) * 256, &dev->dev);
-	if (!info)
+	if (!info) {
 		rc = -ENOMEM;
 		goto bail;
+	}
 
 	default_par = info->par;
 	default_par->reg_addr = (unsigned long) ioremap(EPSON1355FB_REGS_PHYS, EPSON1355FB_REGS_LEN);

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux