[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>
This commit is contained in:
parent
41bdabbb6d
commit
aa8a8d6648
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue