Skip to content

Commit

Permalink
nuc900fb: release correct mem region
Browse files Browse the repository at this point in the history
We should be releasing "res->start" here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Wan ZongShun <mcuos.com@gmail.com>
Cc: Wang Qiang <rurality.linux@gmail.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed May 25, 2010
1 parent 49bbd81 commit a42dcb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/nuc900fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ static int __devinit nuc900fb_probe(struct platform_device *pdev)
release_regs:
iounmap(fbi->io);
release_mem_region:
release_mem_region((unsigned long)fbi->mem, size);
release_mem_region(res->start, size);
free_fb:
framebuffer_release(fbinfo);
return ret;
Expand Down

0 comments on commit a42dcb8

Please sign in to comment.