projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88c5942
)
sfc: Fix memory BAR release call on error path
author
Ben Hutchings
<bhutchings@solarflare.com>
Mon, 1 Sep 2008 11:49:15 +0000
(12:49 +0100)
committer
Jeff Garzik
<jgarzik@redhat.com>
Wed, 24 Sep 2008 22:54:35 +0000
(18:54 -0400)
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>
drivers/net/sfc/efx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/sfc/efx.c
b/drivers/net/sfc/efx.c
index 0d47d6ffe68a4fc670119c1c0a047fab0f6cafb3..6d3eb823488e64f35336392896378bc8f44d8245 100644
(file)
--- 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: