summaryrefslogtreecommitdiffstats
path: root/crypto/dh.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-07-04 18:37:20 +0200
committerHerbert Xu2018-07-13 12:26:49 +0200
commitd6be72ee2c77469d4fb391ccccc2ebc1b167a242 (patch)
treeb35a052ee1c34f1c2206ceeca8e067420cf52d54 /crypto/dh.c
parentcrypto: ccp - Add support for new CCP/PSP device ID (diff)
downloadkernel-qcow2-linux-d6be72ee2c77469d4fb391ccccc2ebc1b167a242.tar.gz
kernel-qcow2-linux-d6be72ee2c77469d4fb391ccccc2ebc1b167a242.tar.xz
kernel-qcow2-linux-d6be72ee2c77469d4fb391ccccc2ebc1b167a242.zip
crypto: chtls - use 64-bit arithmetic instead of 32-bit
Cast *val* to u64 in order to give the compiler complete information about the proper arithmetic to use. Notice that such variable is used in a context that expects an expression of type u64 (64 bits, unsigned) and the following expression is currently being evaluated using 32-bit arithmetic: val << bit_pos Addresses-Coverity-ID: 1467425 ("Unintentional integer overflow") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/dh.c')
0 files changed, 0 insertions, 0 deletions