]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Feb 2016 20:30:56 +0000 (12:30 -0800)
commit695f6c8798c6c4a0be6df79082e9890b22af4d8b
tree30d09157dfbcd62bfe3fab31ca739520702b0d91
parentad53ae59587bcd110229d2594e059349b4306b6c
PCI: Fix minimum allocation address overwrite

commit 3460baa620685c20f5ee19afb6d99d26150c382c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/bus.c