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:46:40 +0000 (11:46 +0200)
commit25f97736b67d63dc5244cd7fdeadf3fab382fb0b
tree7a638cf106e11e997b320c700e3e6a1168ce5112
parentc24fb5a30cd0330e47c95ad5e7f66e066879ce0f
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