Skip to content

Commit

Permalink
epson1355fb.c: fix error handling code
Browse files Browse the repository at this point in the history
Fix error handling code

Signed-off-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Roland Stigge authored and Linus Torvalds committed May 8, 2007
1 parent c930faa commit 19f3d3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/epson1355fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 19f3d3a

Please sign in to comment.