Commit da78329a authored by Jason A. Donenfeld's avatar Jason A. Donenfeld Committed by Zheng Zengkai
Browse files

random: use proper return types on get_random_{int,long}_wait()

stable inclusion
from stable-v5.10.119
commit 33783ca3556e8d3965fe44aa79ae41ab19897189
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6BB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=33783ca3556e8d3965fe44aa79ae41ab19897189



--------------------------------

commit 7c3a8a1d upstream.

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

Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 168755ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment