summaryrefslogtreecommitdiffstats
path: root/drivers/misc/ti-st/Makefile
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2018-12-11 18:58:21 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2018-12-21 14:46:50 +1100
commit2f07229f02d4c55affccd11a61af4fd4b94dc436 (patch)
tree7ed0b414263e3c69cb12471b5fbf60d299246f1a /drivers/misc/ti-st/Makefile
parent34642d70ac7e5609e31c36edbf3b19e0d8833be7 (diff)
downloadlinux-2f07229f02d4c55affccd11a61af4fd4b94dc436.tar.gz
linux-2f07229f02d4c55affccd11a61af4fd4b94dc436.tar.bz2
linux-2f07229f02d4c55affccd11a61af4fd4b94dc436.zip
ocxl: Fix endiannes bug in read_afu_name()
The AFU Descriptor Template in the PCI config space has a Name Space field which is a 24 Byte ASCII character string of descriptive name space for the AFU. The OCXL driver read the string four characters at a time with pci_read_config_dword(). This optimization is valid on a little-endian system since this is PCI, but a big-endian system ends up with each subset of four characters in reverse order. This could be fixed by switching to read characters one by one. Another option is to swap the bytes if we're big-endian. Go for the latter with le32_to_cpu(). Cc: stable@vger.kernel.org # v4.16 Signed-off-by: Greg Kurz <groug@kaod.org> Acked-by: Frederic Barrat <fbarrat@linux.ibm.com> Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/ti-st/Makefile')
0 files changed, 0 insertions, 0 deletions