Browse Source

[qib7322] Add missing iounmap()

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

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

2289
 	/* Fix up PCI device */
2289
 	/* Fix up PCI device */
2290
 	adjust_pci_device ( pci );
2290
 	adjust_pci_device ( pci );
2291
 
2291
 
2292
-	/* Get PCI BARs */
2292
+	/* Map PCI BARs */
2293
 	qib7322->regs = ioremap ( pci->membase, QIB7322_BAR0_SIZE );
2293
 	qib7322->regs = ioremap ( pci->membase, QIB7322_BAR0_SIZE );
2294
 	DBGC2 ( qib7322, "QIB7322 %p has BAR at %08lx\n",
2294
 	DBGC2 ( qib7322, "QIB7322 %p has BAR at %08lx\n",
2295
 		qib7322, pci->membase );
2295
 		qib7322, pci->membase );
2384
  err_init_recv:
2384
  err_init_recv:
2385
  err_read_eeprom:
2385
  err_read_eeprom:
2386
  err_init_i2c:
2386
  err_init_i2c:
2387
+	iounmap ( qib7322->regs );
2387
 	free ( qib7322 );
2388
 	free ( qib7322 );
2388
  err_alloc_qib7322:
2389
  err_alloc_qib7322:
2389
 	return rc;
2390
 	return rc;
2406
 		ibdev_put ( qib7322->ibdev[i] );
2407
 		ibdev_put ( qib7322->ibdev[i] );
2407
 	qib7322_fini_send ( qib7322 );
2408
 	qib7322_fini_send ( qib7322 );
2408
 	qib7322_fini_recv ( qib7322 );
2409
 	qib7322_fini_recv ( qib7322 );
2410
+	iounmap ( qib7322->regs );
2409
 	free ( qib7322 );
2411
 	free ( qib7322 );
2410
 }
2412
 }
2411
 
2413
 

Loading…
Cancel
Save