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:
a531a14
)
PCI: pcie portdriver: initialize returned value
author
Linas Vepstas
<linas@austin.ibm.com>
Fri, 2 Nov 2007 20:14:28 +0000
(15:14 -0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 28 Nov 2007 22:35:25 +0000
(14:35 -0800)
The pcie protdrv status can be returned uninitialized,
if there are no children under a device. This leads to
bad responses downstream. Fix this.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pcie/portdrv_pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pcie/portdrv_pci.c
b/drivers/pci/pcie/portdrv_pci.c
index df383645e36622a9c13d09d4be89884f6ed727c0..26057f98f72ebddec17c3f8f58d74fe2ebdd8b3f 100644
(file)
--- a/
drivers/pci/pcie/portdrv_pci.c
+++ b/
drivers/pci/pcie/portdrv_pci.c
@@
-217,7
+217,7
@@
static int slot_reset_iter(struct device *device, void *data)
static pci_ers_result_t pcie_portdrv_slot_reset(struct pci_dev *dev)
{
- pci_ers_result_t status;
+ pci_ers_result_t status
= PCI_ERS_RESULT_NONE
;
int retval;
/* If fatal, restore cfg space for possible link reset at upstream */