summaryrefslogtreecommitdiffstats
path: root/src/drivers/infiniband
diff options
context:
space:
mode:
authorMichael Brown2016-03-20 15:53:32 +0100
committerMichael Brown2016-03-20 15:54:08 +0100
commitbea9ee2397f9755012db3b54a81c011555ca6497 (patch)
tree3630a58066c6d356aaf63a135bd272810ef09fe1 /src/drivers/infiniband
parent[arbel] Add missing iounmap() (diff)
downloadipxe-bea9ee2397f9755012db3b54a81c011555ca6497.tar.gz
ipxe-bea9ee2397f9755012db3b54a81c011555ca6497.tar.xz
ipxe-bea9ee2397f9755012db3b54a81c011555ca6497.zip
[linda] Add missing iounmap()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband')
-rw-r--r--src/drivers/infiniband/linda.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/infiniband/linda.c b/src/drivers/infiniband/linda.c
index 0c168274..391fff42 100644
--- a/src/drivers/infiniband/linda.c
+++ b/src/drivers/infiniband/linda.c
@@ -2327,7 +2327,7 @@ static int linda_probe ( struct pci_device *pci ) {
/* Fix up PCI device */
adjust_pci_device ( pci );
- /* Get PCI BARs */
+ /* Map PCI BARs */
linda->regs = ioremap ( pci->membase, LINDA_BAR0_SIZE );
DBGC2 ( linda, "Linda %p has BAR at %08lx\n", linda, pci->membase );
@@ -2388,6 +2388,7 @@ static int linda_probe ( struct pci_device *pci ) {
err_init_ib_serdes:
err_read_eeprom:
err_init_i2c:
+ iounmap ( linda->regs );
ibdev_put ( ibdev );
err_alloc_ibdev:
return rc;
@@ -2405,6 +2406,7 @@ static void linda_remove ( struct pci_device *pci ) {
unregister_ibdev ( ibdev );
linda_fini_recv ( linda );
linda_fini_send ( linda );
+ iounmap ( linda->regs );
ibdev_put ( ibdev );
}