Commit:     bf164410d08dc83df416e3a6a43ab29bf88890ed
Parent:     a531a141089714efe39eca89593524fdf05104f2
Author:     Linas Vepstas <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 2 15:14:28 2007 -0500
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Wed Nov 28 14:35:25 2007 -0800

    PCI: pcie portdriver: initialize returned value
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/pci/pcie/portdrv_pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c
index df38364..26057f9 100644
--- 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 
 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 */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to