Commit aa8a8d66 authored by Amol Lad's avatar Amol Lad Committed by Linus Torvalds

[PATCH] ioremap balanced with iounmap for drivers/char/istallion.c

Signed-off-by: default avatarAmol Lad <amol@verismonetworks.com>
Acked-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 41bdabbb
...@@ -3476,6 +3476,8 @@ static int stli_initecp(stlibrd_t *brdp) ...@@ -3476,6 +3476,8 @@ static int stli_initecp(stlibrd_t *brdp)
if (sig.magic != cpu_to_le32(ECP_MAGIC)) if (sig.magic != cpu_to_le32(ECP_MAGIC))
{ {
release_region(brdp->iobase, brdp->iosize); release_region(brdp->iobase, brdp->iosize);
iounmap(brdp->membase);
brdp->membase = NULL;
return -ENODEV; return -ENODEV;
} }
...@@ -3632,6 +3634,8 @@ static int stli_initonb(stlibrd_t *brdp) ...@@ -3632,6 +3634,8 @@ static int stli_initonb(stlibrd_t *brdp)
sig.magic3 != cpu_to_le16(ONB_MAGIC3)) sig.magic3 != cpu_to_le16(ONB_MAGIC3))
{ {
release_region(brdp->iobase, brdp->iosize); release_region(brdp->iobase, brdp->iosize);
iounmap(brdp->membase);
brdp->membase = NULL;
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
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