aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJarkko Sakkinen <[email protected]>2017-05-07 20:50:02 +0300
committerJarkko Sakkinen <[email protected]>2017-06-13 22:02:08 +0300
commit124bdcf4a697f9672d1150de60c5ea489bcad201 (patch)
treeeb47aa20575a6a603bc5f80394178e990e5c23cc /net/unix/af_unix.c
parentd8c3eab5cb92f37ca8576fc641fa4bfd8a0c8b00 (diff)
tpm: fix byte order related arithmetic inconsistency in tpm_getcap()
You should not do arithmetic with __be32 or __le32 types because sometimes it results incorrect results. Calculations must be done only with integers that are in in the CPU byte order. This commit migrates tpm_getcap() to struct tpm_buf in order to sort out these issues. Signed-off-by: Jarkko Sakkinen <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions