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)
commit0ddd9f1a6b7e5746b52959f645fc66859b805e88
treed9a9c465c41a379ae416f84e95ccf9a0dd84d5d0
parent281590b4221779dbc4a5e2c33c0c5b0239cfe794
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