]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
random: use proper return types on get_random_{int,long}_wait()
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 13 May 2022 10:32:23 +0000 (12:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 09:45:15 +0000 (11:45 +0200)
commite279897ef0753653c110032e9d96efcf53e32cbc
tree345fea44963a7a54897e330ef33f97fc2c175b07
parent9bb0c18aeff8dcbc64fb143cf7836f17a8f8dc8d
random: use proper return types on get_random_{int,long}_wait()

commit 7c3a8a1db5e03d02cc0abb3357a84b8b326dfac3 upstream.

Before these were returning signed values, but the API is intended to be
used with unsigned values.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c
include/linux/random.h