]> git.baikalelectronics.ru Git - kernel.git/commit
s390x: Mark archrandom.h functions __must_check
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 10 Jan 2020 14:54:22 +0000 (14:54 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 25 Jan 2020 17:18:51 +0000 (12:18 -0500)
commit9935f34f9cb429d303e61e80b0f722931e1a8963
treec08bb48e7994e4cced7e30c5e115d065f79e7fde
parent0fa9120aa25170f36d0364b8f9d703c72c0a8bb0
s390x: Mark archrandom.h functions __must_check

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

Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
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-11-broonie@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
arch/s390/include/asm/archrandom.h