random: reorder READ_ONCE() in get_random_uXX
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 30 Jun 2017 14:37:13 +0000 (16:37 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 15 Jul 2017 16:33:22 +0000 (12:33 -0400)
commit72e5c740f6335e27253b8ff64d23d00337091535
tree277b0d7fdd627c80c54deafae9ab10b27c3d39de
parenteecabf567422eda02bd179f2707d8fe24f52d888
random: reorder READ_ONCE() in get_random_uXX

Avoid the READ_ONCE in commit 4a072c71f49b ("random: silence compiler
warnings and fix race") if we can leave the function after
arch_get_random_XXX().

Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c