]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: don't say we claimed a resource if we failed
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 22 Mar 2010 22:34:05 +0000 (16:34 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 25 Mar 2010 15:51:35 +0000 (08:51 -0700)
commit9db18a3151e48a0b34f8b4dd21c8c6a1641d5a9a
treef7707ffe10dd10efe3d50670c1252d819aef6534
parent29bc320f4088e04c66c4c3bd864413f233836812
PCI: don't say we claimed a resource if we failed

pci_claim_resource() can fail, so pay attention and only claim success
when it actually succeeded.  If pci_claim_resource() fails, it prints a
useful diagnostic.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/quirks.c