Skip to content

Commit

Permalink
PCI: pcie portdriver: initialize returned value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linas Vepstas authored and Greg Kroah-Hartman committed Nov 28, 2007
1 parent a531a14 commit bf16441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/pcie/portdrv_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit bf16441

Please sign in to comment.