From: Dan Carpenter Date: Mon, 24 May 2010 21:34:09 +0000 (-0700) Subject: nuc900fb: release correct mem region X-Git-Tag: firefly_0821_release~9833^2~1888 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a42dcb883d948a5f26c005f0e401e8297aa05f76;p=firefly-linux-kernel-4.4.55.git nuc900fb: release correct mem region We should be releasing "res->start" here. Signed-off-by: Dan Carpenter Acked-by: Wan ZongShun Cc: Wang Qiang Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c index 6bf0d460a738..d4cde79ea15e 100644 --- a/drivers/video/nuc900fb.c +++ b/drivers/video/nuc900fb.c @@ -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;