Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42756
b: refs/heads/master
c: 8684265
h: refs/heads/master
v: v3
  • Loading branch information
Amol Lad authored and Linus Torvalds committed Dec 7, 2006
1 parent 6932ed4 commit 4ba55b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 238b8721a554a33a451a3f13bdb5be8fe5cfc927
refs/heads/master: 8684265412518858c48a56c2f0aa86f280978b74
8 changes: 7 additions & 1 deletion trunk/drivers/char/rio/rio_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@ static int __init rio_init(void)
found++;
} else {
iounmap(p->RIOHosts[p->RIONumHosts].Caddr);
p->RIOHosts[p->RIONumHosts].Caddr = NULL;
}
}

Expand Down Expand Up @@ -1078,6 +1079,7 @@ static int __init rio_init(void)
found++;
} else {
iounmap(p->RIOHosts[p->RIONumHosts].Caddr);
p->RIOHosts[p->RIONumHosts].Caddr = NULL;
}
#else
printk(KERN_ERR "Found an older RIO PCI card, but the driver is not " "compiled to support it.\n");
Expand Down Expand Up @@ -1117,8 +1119,10 @@ static int __init rio_init(void)
}
}

if (!okboard)
if (!okboard) {
iounmap(hp->Caddr);
hp->Caddr = NULL;
}
}
}

Expand Down Expand Up @@ -1188,6 +1192,8 @@ static void __exit rio_exit(void)
}
/* It is safe/allowed to del_timer a non-active timer */
del_timer(&hp->timer);
if (hp->Caddr)
iounmap(hp->Caddr);
if (hp->Type == RIO_PCI)
pci_dev_put(hp->pdev);
}
Expand Down

0 comments on commit 4ba55b3

Please sign in to comment.