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: 5f8fc43217a0 ("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
..
2016-05-20 10:12:41 -07:00
2015-08-13 15:59:59 -05:00
2016-03-19 15:38:41 -07:00
2016-01-21 11:52:16 -08:00
2014-06-10 20:20:19 -06:00
2014-06-10 20:20:19 -06:00
2016-03-15 08:56:28 -05:00
2014-06-10 20:20:19 -06:00
2016-06-20 13:24:20 -05:00