summaryrefslogtreecommitdiffstats
path: root/src/drivers/infiniband
diff options
context:
space:
mode:
authorMichael Brown2016-03-20 15:55:18 +0100
committerMichael Brown2016-03-20 15:55:18 +0100
commit4a861cc61cc2dca07f41d5932939c2c9993cec78 (patch)
tree5edceab98053ba24fb0c077a9c3e121105518943 /src/drivers/infiniband
parent[linda] Add missing iounmap() (diff)
downloadipxe-4a861cc61cc2dca07f41d5932939c2c9993cec78.tar.gz
ipxe-4a861cc61cc2dca07f41d5932939c2c9993cec78.tar.xz
ipxe-4a861cc61cc2dca07f41d5932939c2c9993cec78.zip
[qib7322] Add missing iounmap()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband')
-rw-r--r--src/drivers/infiniband/qib7322.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/infiniband/qib7322.c b/src/drivers/infiniband/qib7322.c
index 08cedcb7..3bd587ec 100644
--- a/src/drivers/infiniband/qib7322.c
+++ b/src/drivers/infiniband/qib7322.c
@@ -2289,7 +2289,7 @@ static int qib7322_probe ( struct pci_device *pci ) {
/* Fix up PCI device */
adjust_pci_device ( pci );
- /* Get PCI BARs */
+ /* Map PCI BARs */
qib7322->regs = ioremap ( pci->membase, QIB7322_BAR0_SIZE );
DBGC2 ( qib7322, "QIB7322 %p has BAR at %08lx\n",
qib7322, pci->membase );
@@ -2384,6 +2384,7 @@ static int qib7322_probe ( struct pci_device *pci ) {
err_init_recv:
err_read_eeprom:
err_init_i2c:
+ iounmap ( qib7322->regs );
free ( qib7322 );
err_alloc_qib7322:
return rc;
@@ -2406,6 +2407,7 @@ static void qib7322_remove ( struct pci_device *pci ) {
ibdev_put ( qib7322->ibdev[i] );
qib7322_fini_send ( qib7322 );
qib7322_fini_recv ( qib7322 );
+ iounmap ( qib7322->regs );
free ( qib7322 );
}