]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
exec: Fix incorrect type for ret
authorXichao Zhao <zhao.xichao@vivo.com>
Mon, 25 Aug 2025 07:36:09 +0000 (15:36 +0800)
committerKees Cook <kees@kernel.org>
Mon, 25 Aug 2025 16:33:33 +0000 (09:33 -0700)
commit5e088248375d171b80c643051e77ade6b97bc386
tree91dd461f3c0f9a8295f60dc358afc53c497bddd2
parentc17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
exec: Fix incorrect type for ret

In the setup_arg_pages(), ret is declared as an unsigned long.
The ret might take a negative value. Therefore, its type should
be changed to int.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20250825073609.219855-1-zhao.xichao@vivo.com
Signed-off-by: Kees Cook <kees@kernel.org>
fs/exec.c