mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
exec: simplify the copy_strings_kernel calling convention
copy_strings_kernel is always used with a single argument, adjust the calling convention to that. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Link: http://lkml.kernel.org/r/20200501104105.2621149-2-hch@lst.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
eac2cece45
commit
986db2d14a
@@ -117,17 +117,17 @@ static int load_script(struct linux_binprm *bprm)
|
||||
retval = remove_arg_zero(bprm);
|
||||
if (retval)
|
||||
return retval;
|
||||
retval = copy_strings_kernel(1, &bprm->interp, bprm);
|
||||
retval = copy_string_kernel(bprm->interp, bprm);
|
||||
if (retval < 0)
|
||||
return retval;
|
||||
bprm->argc++;
|
||||
if (i_arg) {
|
||||
retval = copy_strings_kernel(1, &i_arg, bprm);
|
||||
retval = copy_string_kernel(i_arg, bprm);
|
||||
if (retval < 0)
|
||||
return retval;
|
||||
bprm->argc++;
|
||||
}
|
||||
retval = copy_strings_kernel(1, &i_name, bprm);
|
||||
retval = copy_string_kernel(i_name, bprm);
|
||||
if (retval)
|
||||
return retval;
|
||||
bprm->argc++;
|
||||
|
Reference in New Issue
Block a user