Skip to contentSkip to conversation

exec: fix typo and grammar mistake in comment

PATCH In review Adrian Huang 2 participants 2 messages Aug 30, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 exec: fix typo and grammar mistake in comment

From: Adrian Huang <[email protected]>

1. backwords -> backwards
2. Remove 'and' and whitespace
3. Correct the possessive form of "process"

---
Changes since v2:
* Correct possessive form of "process" and fix the grammar, per Randy

 fs/exec.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
fs/exec.c +3 -3
index 38f63451b928..d0e20fedde21 100644
@@ -504,7 +504,7 @@ static int bprm_stack_limits(struct linux_binprm *bprm)
 
 /*
  * 'copy_strings()' copies argument/environment strings from the old
- * processes's memory to the new process's stack.  The call to get_user_pages()
+ * process's memory to the new process's stack. The call to get_user_pages()
  * ensures the destination page is created and not swapped out.
  */
 static int copy_strings(int argc, struct user_arg_ptr argv,
@@ -533,7 +533,7 @@ static int copy_strings(int argc, struct user_arg_ptr argv,
 		if (!valid_arg_len(bprm, len))
 			goto out;
 
-		/* We're going to work our way backwords. */
+		/* We're going to work our way backwards. */
 		pos = bprm->p;
 		str += len;
 		bprm->p -= len;
@@ -600,7 +600,7 @@ static int copy_strings(int argc, struct user_arg_ptr argv,
 }
 
 /*
- * Copy and argument/environment string from the kernel to the processes stack.
+ * Copy an argument/environment string from the kernel to the process's stack.
  */
 int copy_string_kernel(const char *arg, struct linux_binprm *bprm)
 {
Signature · 1 line
2.27.0
Acked-by on v2 1/1
#1 lore raw
Quoted 8 lines · Adrian Huang

From: Adrian Huang <[email protected]>

1. backwords -> backwards
2. Remove 'and' and whitespace
3. Correct the possessive form of "process"

Thanks.

Quoted 39 lines

---
Changes since v2:
* Correct possessive form of "process" and fix the grammar, per Randy

  fs/exec.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
fs/exec.c +3 -3
index 38f63451b928..d0e20fedde21 100644
@@ -504,7 +504,7 @@ static int bprm_stack_limits(struct linux_binprm *bprm)
 
  /*
   * 'copy_strings()' copies argument/environment strings from the old
- * processes's memory to the new process's stack.  The call to get_user_pages()
+ * process's memory to the new process's stack. The call to get_user_pages()
   * ensures the destination page is created and not swapped out.
   */
  static int copy_strings(int argc, struct user_arg_ptr argv,
@@ -533,7 +533,7 @@ static int copy_strings(int argc, struct user_arg_ptr argv,
  		if (!valid_arg_len(bprm, len))
  			goto out;
 
-		/* We're going to work our way backwords. */
+		/* We're going to work our way backwards. */
  		pos = bprm->p;
  		str += len;
  		bprm->p -= len;
@@ -600,7 +600,7 @@ static int copy_strings(int argc, struct user_arg_ptr argv,
  }
 
  /*
- * Copy and argument/environment string from the kernel to the processes stack.
+ * Copy an argument/environment string from the kernel to the process's stack.
   */
  int copy_string_kernel(const char *arg, struct linux_binprm *bprm)
  {
Signature · 1 line
~Randy