Re: [PATCH] random: properly align get_random_int_hash

2016-05-04 Thread Theodore Ts'o
On Thu, Mar 31, 2016 at 08:11:25PM -0500, Eric Biggers wrote: > 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. > > Signed-off-by: Er

[PATCH] random: properly align get_random_int_hash

2016-03-31 Thread Eric Biggers
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. Signed-off-by: Eric Biggers --- drivers/char/random.c | 4 +++- 1 file changed, 3 inser