]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: cpcihp: Add missing curly braces in cpci_configure_slot()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Feb 2015 13:23:22 +0000 (16:23 +0300)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 23 Apr 2015 03:28:34 +0000 (23:28 -0400)
commit5a3edbcd6205ed320df53bae338761cf5ba98b94
treed53621007ada482f33f696bf8a64af86866ae970
parent02e0fab6a0bc9c941a896b608368cc009efc9ccc
PCI: cpcihp: Add missing curly braces in cpci_configure_slot()

[ Upstream commit bc3b5b47c80da8838758731d423179262c9c36ec ]

I don't have this hardware but it looks like we weren't adding bridge
devices as intended.  Maybe the bridge is always the last device?

Fixes: 05b125004815 ("PCI: cpcihp: Iterate over all devices in slot, not functions 0-7")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yijing Wang <wangyijing@huawei.com>
CC: stable@vger.kernel.org # v3.9+
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/pci/hotplug/cpci_hotplug_pci.c