]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: DH: ensure the KDF counter is properly aligned
authorEric Biggers <ebiggers@google.com>
Thu, 8 Jun 2017 13:49:49 +0000 (14:49 +0100)
committerJames Morris <james.l.morris@oracle.com>
Fri, 9 Jun 2017 03:29:49 +0000 (13:29 +1000)
commita297d673b87d8470246cb51df1f7eeed21b5b807
treed9a9c465c41a379ae416f84e95ccf9a0dd84d5d0
parent0655fdd8af66292fdce68a5bc1b838722e2a2b73
KEYS: DH: ensure the KDF counter is properly aligned

Accessing a 'u8[4]' through a '__be32 *' violates alignment rules.  Just
make the counter a __be32 instead.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/keys/dh.c