Skip to content

Commit

Permalink
[linda] Add missing iounmap()
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 20, 2016
1 parent 6923249 commit bea9ee2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/drivers/infiniband/linda.c
Expand Up @@ -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 );

Expand Down Expand Up @@ -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;
Expand All @@ -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 );
}

Expand Down

0 comments on commit bea9ee2

Please sign in to comment.