mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
exec: Fix incorrect type for ret
[ Upstream commit 5e088248375d171b80c643051e77ade6b97bc386 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
603158d4ef
commit
577b13e5b2
1 changed files with 1 additions and 1 deletions
|
|
@ -701,7 +701,7 @@ int setup_arg_pages(struct linux_binprm *bprm,
|
|||
unsigned long stack_top,
|
||||
int executable_stack)
|
||||
{
|
||||
unsigned long ret;
|
||||
int ret;
|
||||
unsigned long stack_shift;
|
||||
struct mm_struct *mm = current->mm;
|
||||
struct vm_area_struct *vma = bprm->vma;
|
||||
|
|
|
|||
Loading…
Reference in a new issue