]> 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)
commit0a388c02cbf110bdebbc755220e2e14bca64619d
treed9a9c465c41a379ae416f84e95ccf9a0dd84d5d0
parent618fed023a6c7e2ea231c3585240a1c6ddcfa314
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