Skip to content

Commit

Permalink
[PATCH] ioremap balanced with iounmap for drivers/char/moxa.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amol Lad authored and Linus Torvalds committed Dec 7, 2006
1 parent 8684265 commit 41bdabb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/char/moxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,12 @@ static void __exit moxa_exit(void)
printk("Couldn't unregister MOXA Intellio family serial driver\n");
put_tty_driver(moxaDriver);

for (i = 0; i < MAX_BOARDS; i++)
for (i = 0; i < MAX_BOARDS; i++) {
if (moxaBaseAddr[i])
iounmap(moxaBaseAddr[i]);
if (moxa_boards[i].busType == MOXA_BUS_TYPE_PCI)
pci_dev_put(moxa_boards[i].pciInfo.pdev);
}

if (verbose)
printk("Done\n");
Expand Down

0 comments on commit 41bdabb

Please sign in to comment.