Skip to content

Commit aa8a8d6

Browse files
Amol LadLinus Torvalds
authored andcommitted
[PATCH] ioremap balanced with iounmap for drivers/char/istallion.c
Signed-off-by: Amol Lad <amol@verismonetworks.com> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 41bdabb commit aa8a8d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/char/istallion.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3476,6 +3476,8 @@ static int stli_initecp(stlibrd_t *brdp)
34763476
if (sig.magic != cpu_to_le32(ECP_MAGIC))
34773477
{
34783478
release_region(brdp->iobase, brdp->iosize);
3479+
iounmap(brdp->membase);
3480+
brdp->membase = NULL;
34793481
return -ENODEV;
34803482
}
34813483

@@ -3632,6 +3634,8 @@ static int stli_initonb(stlibrd_t *brdp)
36323634
sig.magic3 != cpu_to_le16(ONB_MAGIC3))
36333635
{
36343636
release_region(brdp->iobase, brdp->iosize);
3637+
iounmap(brdp->membase);
3638+
brdp->membase = NULL;
36353639
return -ENODEV;
36363640
}
36373641

0 commit comments

Comments
 (0)