PCI: Fix minimum allocation address overwrite
authorChristoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
Wed, 23 Dec 2015 15:51:57 +0000 (16:51 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 6 Jan 2016 21:37:55 +0000 (15:37 -0600)
commit3460baa620685c20f5ee19afb6d99d26150c382c
treec287d0ffcd0a33ac3268dbe20ba3d1b17a91000a
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
PCI: Fix minimum allocation address overwrite

Commit 36e097a8a297 ("PCI: Split out bridge window override of minimum
allocation address") claimed to do no functional changes but unfortunately
did: The "min" variable is altered.  At least the AVM A1 PCMCIA adapter was
no longer detected, breaking ISDN operation.

Use a local copy of "min" to restore the previous behaviour.

[bhelgaas: avoid gcc "?:" extension for portability and readability]
Fixes: 36e097a8a297 ("PCI: Split out bridge window override of minimum allocation address")
Signed-off-by: Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org # v3.14+
drivers/pci/bus.c