diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-02-23 15:22:54 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-02-23 15:22:54 -0800 |
commit | 02fc0b90ce5738e7c1433e28704f1b76741cb214 (patch) | |
tree | 909ec0f88b50c49b7d623a612f7bf2f75c429afd /pci | |
parent | 0a04042debb651c3f529c3aee17deca5ada6683b (diff) | |
download | patches-02fc0b90ce5738e7c1433e28704f1b76741cb214.tar.gz |
usb and pci patches
Diffstat (limited to 'pci')
-rw-r--r-- | pci/pci-move-pci_dev_put-outside-a-spinlock.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pci/pci-move-pci_dev_put-outside-a-spinlock.patch b/pci/pci-move-pci_dev_put-outside-a-spinlock.patch new file mode 100644 index 0000000000000..a8ad8872a99b3 --- /dev/null +++ b/pci/pci-move-pci_dev_put-outside-a-spinlock.patch @@ -0,0 +1,30 @@ +From stern@rowland.harvard.edu Thu Feb 23 14:12:57 2006 +Date: Thu, 23 Feb 2006 17:12:51 -0500 (EST) +From: Alan Stern <stern@rowland.harvard.edu> +To: Greg KH <greg@kroah.com> +Subject: PCI: Move pci_dev_put outside a spinlock +Message-ID: <Pine.LNX.4.44L0.0602231710110.4579-100000@iolanthe.rowland.org> + +This patch (as659) fixes a might_sleep problem in the PCI core, by moving +a call to pci_dev_put() outside the scope of a spinlock. + +Signed-off-by: Alan Stern <stern@rowland.harvard.edu> +Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> + +--- + drivers/pci/search.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- gregkh-2.6.orig/drivers/pci/search.c ++++ gregkh-2.6/drivers/pci/search.c +@@ -246,9 +246,9 @@ pci_get_subsys(unsigned int vendor, unsi + } + dev = NULL; + exit: +- pci_dev_put(from); + dev = pci_dev_get(dev); + spin_unlock(&pci_bus_lock); ++ pci_dev_put(from); + return dev; + } + |