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>
This commit is contained in:
committed by
Jeff Garzik
parent
88c5942513
commit
e1074a0d96
@@ -780,7 +780,7 @@ static int efx_init_io(struct efx_nic *efx)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail4:
|
fail4:
|
||||||
release_mem_region(efx->membase_phys, efx->type->mem_map_size);
|
pci_release_region(efx->pci_dev, efx->type->mem_bar);
|
||||||
fail3:
|
fail3:
|
||||||
efx->membase_phys = 0;
|
efx->membase_phys = 0;
|
||||||
fail2:
|
fail2:
|
||||||
|
Reference in New Issue
Block a user