Skip to content

Commit

Permalink
[PATCH] ioremap balanced with iounmap for drivers/char/istallion.c
Browse files Browse the repository at this point in the history
Signed-off-by: Amol Lad <[email protected]>
Acked-by: Alan Cox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Amol Lad authored and Linus Torvalds committed Dec 7, 2006
1 parent 41bdabb commit aa8a8d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/char/istallion.c
Original file line number Diff line number Diff line change
Expand Up @@ -3476,6 +3476,8 @@ static int stli_initecp(stlibrd_t *brdp)
if (sig.magic != cpu_to_le32(ECP_MAGIC))
{
release_region(brdp->iobase, brdp->iosize);
iounmap(brdp->membase);
brdp->membase = NULL;
return -ENODEV;
}

Expand Down Expand Up @@ -3632,6 +3634,8 @@ static int stli_initonb(stlibrd_t *brdp)
sig.magic3 != cpu_to_le16(ONB_MAGIC3))
{
release_region(brdp->iobase, brdp->iosize);
iounmap(brdp->membase);
brdp->membase = NULL;
return -ENODEV;
}

Expand Down

0 comments on commit aa8a8d6

Please sign in to comment.