Browse Source

[linda] Add missing iounmap()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
bea9ee2397
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/drivers/infiniband/linda.c

+ 3
- 1
src/drivers/infiniband/linda.c View File

@@ -2327,7 +2327,7 @@ static int linda_probe ( struct pci_device *pci ) {
2327 2327
 	/* Fix up PCI device */
2328 2328
 	adjust_pci_device ( pci );
2329 2329
 
2330
-	/* Get PCI BARs */
2330
+	/* Map PCI BARs */
2331 2331
 	linda->regs = ioremap ( pci->membase, LINDA_BAR0_SIZE );
2332 2332
 	DBGC2 ( linda, "Linda %p has BAR at %08lx\n", linda, pci->membase );
2333 2333
 
@@ -2388,6 +2388,7 @@ static int linda_probe ( struct pci_device *pci ) {
2388 2388
  err_init_ib_serdes:
2389 2389
  err_read_eeprom:
2390 2390
  err_init_i2c:
2391
+	iounmap ( linda->regs );
2391 2392
 	ibdev_put ( ibdev );
2392 2393
  err_alloc_ibdev:
2393 2394
 	return rc;
@@ -2405,6 +2406,7 @@ static void linda_remove ( struct pci_device *pci ) {
2405 2406
 	unregister_ibdev ( ibdev );
2406 2407
 	linda_fini_recv ( linda );
2407 2408
 	linda_fini_send ( linda );
2409
+	iounmap ( linda->regs );
2408 2410
 	ibdev_put ( ibdev );
2409 2411
 }
2410 2412
 

Loading…
Cancel
Save