summaryrefslogtreecommitdiffstats
path: root/src/drivers/infiniband
diff options
context:
space:
mode:
authorWissam Shoukair2016-03-24 17:42:59 +0100
committerMichael Brown2016-04-12 14:40:50 +0200
commit0eea8b5c3bd269f2911001fddb7a2823a3658d10 (patch)
tree73f6220aae7bff9668473ce6214d1d084ae68fb4 /src/drivers/infiniband
parent[mlx_icmd] Fix compilation error in GCC versions newer than 4.6.4 (diff)
downloadipxe-0eea8b5c3bd269f2911001fddb7a2823a3658d10.tar.gz
ipxe-0eea8b5c3bd269f2911001fddb7a2823a3658d10.tar.xz
ipxe-0eea8b5c3bd269f2911001fddb7a2823a3658d10.zip
[golan] Add missing iounmap()
Signed-off-by: Wissam Shoukair <wissams@mellanox.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband')
-rwxr-xr-xsrc/drivers/infiniband/golan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/infiniband/golan.c b/src/drivers/infiniband/golan.c
index 64c75526..ba5a5249 100755
--- a/src/drivers/infiniband/golan.c
+++ b/src/drivers/infiniband/golan.c
@@ -2446,6 +2446,7 @@ err_golan_probe_alloc_ibdev:
golan_bring_down ( golan );
err_golan_bringup:
err_fw_ver_cmdif:
+ iounmap( golan->iseg );
golan_free_pages( &golan->pages );
err_golan_golan_init_pages:
free ( golan );
@@ -2474,7 +2475,7 @@ static void golan_remove_normal ( struct pci_device *pci ) {
}
golan_bring_down(golan);
-
+ iounmap( golan->iseg );
golan_free_pages( &golan->pages );
free(golan);
}