]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:43:50 +0000 (15:43 -0700)
commit911978d10383f910cae0c0bb605bfc65a04e6792
treeb81b0950ddbdac8f9b1dd13aec421ff41368ab37
parentcdb371e00f01970804c4ffacf00f1928c47be79b
PCI: Fix minimum allocation address overwrite

Orabug: 23330618

[ 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>
(cherry picked from commit 24ab3b8e796248bfbdb8a80469b9811b5df39caa)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/pci/bus.c