random: properly align get_random_int_hash
authorEric Biggers <ebiggers3@gmail.com>
Thu, 5 May 2016 01:08:39 +0000 (21:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 13 Jun 2016 15:54:34 +0000 (11:54 -0400)
commitb1132deac01c2332d234fa821a70022796b79182
tree1607891ca52caca524fd1052fe6ab9c2418c5af8
parent4b44f2d18a330565227a7348844493c59366171e
random: properly align get_random_int_hash

get_random_long() reads from the get_random_int_hash array using an
unsigned long pointer.  For this code to be guaranteed correct on all
architectures, the array must be aligned to an unsigned long boundary.

Cc: stable@kernel.org
Signed-off-by: Eric Biggers <ebiggers3@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c