Bläddra i källkod

[qib7322] Add missing iounmap()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 år sedan
förälder
incheckning
4a861cc61c
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3
    1
      src/drivers/infiniband/qib7322.c

+ 3
- 1
src/drivers/infiniband/qib7322.c Visa fil

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

Laddar…
Avbryt
Spara