linux/random.h: Mark CONFIG_ARCH_RANDOM functions __must_check
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 10 Jan 2020 14:54:18 +0000 (14:54 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 25 Jan 2020 17:18:50 +0000 (12:18 -0500)
commit904caa6413c87aacbf7d0682da617c39ca18cf1a
tree2c605f64899021df04f7b324262f567b96cd095f
parent66f5ae899ada79c0e9a3d8d954f93a72344cd350
linux/random.h: Mark CONFIG_ARCH_RANDOM functions __must_check

We must not use the pointer output without validating the
success of the random read.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200110145422.49141-7-broonie@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
include/linux/random.h