Skip to contentSkip to conversation

staging: sep: call disable_pci_device() if pci_probe() failed

PATCH Superseded Kulikov Vasiliy 1 participant 1 message Aug 6, 2010

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 16/18 staging: sep: call disable_pci_device() if pci_probe() failed

Driver should call disable_pci_device() if it returns from pci_probe() with error.

---
 drivers/staging/sep/sep_driver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/sep/sep_driver.c +1 -0
index ecbde34..d456729 100644
@@ -2614,6 +2614,7 @@ end_function_deallocate_sep_shared_area:
 	sep_unmap_and_free_shared_area(sep, size);
 end_function_error:
 	sep_dev = NULL;
+	pci_disable_device(pdev);
 end_function:
 	return error;
 }
Signature · 1 line
1.7.0.4