alistair23-linux/drivers/pci
David Miller ef0dab4aae PCI: Fix unaligned accesses in VC code
The save/restore buffers for VC state is first composed of a 2-byte control
register, then a bunch of 4-byte words.

This causes unaligned accesses which trap on platform such as sparc.

This is easy to fix by simply moving the buffer pointer forward by 4 bytes
instead of 2 after dealing with the control register.  The length
adjustment needs to be changed likewise as well.

Fixes: 5f8fc43217 ("PCI: Include pci/pcie/Kconfig directly from pci/Kconfig")
Reported-by: Meelis Roos <mroos@linux.ee>
Reported-by: Anatoly Pugachev <matorola@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org	# v4.6+
2016-06-20 13:24:20 -05:00
..
host Char / Misc driver update for 4.7-rc1 2016-05-20 21:20:31 -07:00
hotplug powerpc updates for 4.7 2016-05-20 10:12:41 -07:00
pcie Merge branches 'pci/hotplug' and 'pci/resource' into next 2016-05-17 14:35:38 -05:00
access.c
ats.c
bus.c PCI: Do not treat EPROBE_DEFER as device attach failure 2016-05-02 13:49:11 -05:00
ecam.c PCI: Provide common functions for ECAM mapping 2016-05-11 17:34:41 -05:00
ecam.h PCI: generic, thunder: Use generic ECAM API 2016-05-12 07:07:42 -05:00
host-bridge.c
hotplug-pci.c
htirq.c
iov.c
irq.c
Kconfig PCI: Provide common functions for ECAM mapping 2016-05-11 17:34:41 -05:00
Makefile PCI: Provide common functions for ECAM mapping 2016-05-11 17:34:41 -05:00
msi.c
of.c
pci-acpi.c
pci-driver.c
pci-label.c
pci-stub.c
pci-sysfs.c PCI changes for the v4.7 merge window: 2016-05-19 13:10:54 -07:00
pci.c Merge branches 'pci/arm64' and 'pci/host-hv' into next 2016-05-17 14:35:46 -05:00
pci.h
probe.c Merge branches 'pci/hotplug' and 'pci/resource' into next 2016-05-17 14:35:38 -05:00
proc.c
quirks.c Merge branches 'pci/enumeration', 'pci/hotplug', 'pci/misc', 'pci/ntb', 'pci/thunderbolt' and 'pci/virtualization' into next 2016-04-25 14:35:26 -05:00
remove.c
rom.c
search.c
setup-bus.c
setup-irq.c
setup-res.c
slot.c
syscall.c
vc.c PCI: Fix unaligned accesses in VC code 2016-06-20 13:24:20 -05:00
vpd.c
xen-pcifront.c