Commit b2a85aeb authored by Amol Lad's avatar Amol Lad Committed by Linus Torvalds
Browse files

[PATCH] ioremap balanced with iounmap for drivers/video/atyfb_base

ioremap must be balanced by an iounmap and failing to do so can result in a
memory leak.

Signed-off-by: default avatarAmol Lad <>
Cc: "Antonino A. Daplas" <>
Cc: Benjamin Herrenschmidt <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent d8b8c0a6
......@@ -3527,6 +3527,10 @@ static int __devinit atyfb_setup_generic(struct pci_dev *pdev, struct fb_info *i
par->ati_regbase = NULL;
if (info->screen_base) {
info->screen_base = NULL;
return ret;
......@@ -3695,6 +3699,10 @@ static int __devinit atyfb_atari_probe(void)
if (aty_init(info, "ISA bus")) {
if (info->screen_base)
if (par->ati_regbase)
/* This is insufficient! kernel_map has added two large chunks!! */
return -ENXIO;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment