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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 3 Feb 2016 19:01:43 +0000 (14:01 -0500)
commit24ab3b8e796248bfbdb8a80469b9811b5df39caa
treefb178ba9eafcec4f20476a001da47f078f5f9f0c
parent67d0df37bf4235bc3aa1866571e74437cba33199
PCI: Fix minimum allocation address overwrite

[ Upstream commit 3460baa620685c20f5ee19afb6d99d26150c382c ]

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+
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/pci/bus.c