summaryrefslogtreecommitdiff
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2016-06-19 06:52:25 (GMT)
committerBjorn Helgaas <bhelgaas@google.com>2016-06-20 18:24:20 (GMT)
commitef0dab4aae14e25efddf1577736f8450132800c5 (patch)
tree6e35085e725dd7ba3a40d0fad903d4e55c1fd828 /drivers/devfreq
parentaf8c34ce6ae32addda3788d54a7e340cad22516b (diff)
downloadlinux-ef0dab4aae14e25efddf1577736f8450132800c5.tar.xz
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+
Diffstat (limited to 'drivers/devfreq')
0 files changed, 0 insertions, 0 deletions