summaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2008-09-01 13:49:15 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-09-25 00:54:35 +0200
commite1074a0d966ac372bb0abd5eee926a0b57316582 (patch)
tree73d8dde75b77ce410e5a2ca4962f854366a2c615 /drivers/net/sfc
parentsfc: Add check for memory allocation failure in falcon_probe_nic() (diff)
downloadlinux-e1074a0d966ac372bb0abd5eee926a0b57316582.tar.xz
linux-e1074a0d966ac372bb0abd5eee926a0b57316582.zip
sfc: Fix memory BAR release call on error path
Match pci_request_region() with pci_release_region(), not release_mem_region(). From: Steve Hodgson <shodgson@solarflare.com> Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/efx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index 0d47d6ffe68a..6d3eb823488e 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -780,7 +780,7 @@ static int efx_init_io(struct efx_nic *efx)
return 0;
fail4:
- release_mem_region(efx->membase_phys, efx->type->mem_map_size);
+ pci_release_region(efx->pci_dev, efx->type->mem_bar);
fail3:
efx->membase_phys = 0;
fail2: