From: Roland Stigge Date: Tue, 8 May 2007 07:38:31 +0000 (-0700) Subject: epson1355fb.c: fix error handling code X-Git-Tag: v2.6.22-rc1~426 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19f3d3a5546be431f3846d8a8581e7a2f169dba3;p=linux-2.6 epson1355fb.c: fix error handling code Fix error handling code Signed-off-by: Roland Stigge Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/epson1355fb.c b/drivers/video/epson1355fb.c index 29e07c1098..37e297d7fe 100644 --- a/drivers/video/epson1355fb.c +++ b/drivers/video/epson1355fb.c @@ -650,9 +650,10 @@ int __init epson1355fb_probe(struct platform_device *dev) } 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);