mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
[PATCH] ioremap balanced with iounmap for drivers/video/fm2fb
ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad <amol@verismonetworks.com> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1bedb0b2f6
commit
1b3349fa44
1 changed files with 1 additions and 0 deletions
|
@ -283,6 +283,7 @@ static int __devinit fm2fb_probe(struct zorro_dev *z,
|
|||
|
||||
if (register_framebuffer(info) < 0) {
|
||||
fb_dealloc_cmap(&info->cmap);
|
||||
iounmap(info->screen_base);
|
||||
framebuffer_release(info);
|
||||
zorro_release_device(z);
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Reference in a new issue