>From 6ba1072ef110f8977832592c092501b81439da4b Mon Sep 17 00:00:00 2001 From: Rene Herman Date: Tue, 30 Sep 2008 22:33:42 +0200 Subject: [PATCH] PNP: avoid checking unitialized BARs for conflicts Avoid checking a PCI BAR for conflicts if the BIOS left it unitialized. Reported-by: Frans Pop Tested-by: Frans Pop Signed-off-by: Rene Herman --- drivers/pnp/quirks.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c index 0bdf9b8..d0120a5 100644 --- a/drivers/pnp/quirks.c +++ b/drivers/pnp/quirks.c @@ -253,6 +253,9 @@ static void quirk_system_pci_resources(struct pnp_dev *dev) continue; pci_start = pci_resource_start(pdev, i); + if (!pci_start) + continue; + pci_end = pci_resource_end(pdev, i); for (j = 0; (res = pnp_get_resource(dev, type, j)); j++) { -- 1.6.0.2