path: root/fs/nfs
diff options
authorhonclo <honclo@imap.linux.ibm.com>2015-02-12 21:02:24 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-06 14:40:50 -0800
commitc213da80aa303730ca6d99a30f10043428c0e354 (patch)
treebeaf7832961e66574a061f73a6c0bdd14e2e9f16 /fs/nfs
parent6280501c3e6346652bb9a1f2a77148f5aa5a37a6 (diff)
Added Little Endian support to vtpm module
commit eb71f8a5e33fa1066fb92f0111ab366a341e1f6c upstream. The tpm_ibmvtpm module is affected by an unaligned access problem. ibmvtpm_crq_get_version failed with rc=-4 during boot when vTPM is enabled in Power partition, which supports both little endian and big endian modes. We added little endian support to fix this problem: 1) added cpu_to_be64 calls to ensure BE data is sent from an LE OS. 2) added be16_to_cpu and be32_to_cpu calls to make sure data received is in LE format on a LE OS. Signed-off-by: Hon Ching(Vicky) Lo <honclo@linux.vnet.ibm.com> Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com> [phuewe: manually applied the patch :( ] Reviewed-by: Ashley Lai <ashley@ahsleylai.com> Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions