Skip to content

Commit

Permalink
PCI/AER: pci_get_domain_bus_and_slot() call missing required pci_dev_…
Browse files Browse the repository at this point in the history
…put()

The function aer_recover_queue() calls pci_get_domain_bus_and_slot(), which
requires that the caller decrement the reference count with pci_dev_put().
This patch adds the missing call to pci_dev_put().

Signed-off-by: Betty Dall <betty.dall@hp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Shuah Khan <shuah.khan@hp.com>
CC: stable@vger.kernel.org
  • Loading branch information
Betty Dall authored and Bjorn Helgaas committed Jan 13, 2013
1 parent d1c3ed6 commit a82b6af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pci/pcie/aer/aerdrv_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ static void aer_recover_work_func(struct work_struct *work)
continue;
}
do_recovery(pdev, entry.severity);
pci_dev_put(pdev);
}
}
#endif
Expand Down

0 comments on commit a82b6af

Please sign in to comment.