nuc900fb: release correct mem region

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>
This commit is contained in:
Dan Carpenter 2010-05-24 14:34:09 -07:00 committed by Linus Torvalds
parent 49bbd815fd
commit a42dcb883d

View File

@ -667,7 +667,7 @@ release_irq:
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;