2019-01-04 21:50:55

by Matteo Croce

[permalink] [raw]
Subject: [PATCH] kernel/sysctl.c: fix typo

Fix spelling mistake: "lenght" -> "length"

Signed-off-by: Matteo Croce <[email protected]>
---
kernel/sysctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 1825f712e73b..6b2691f5d4c9 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -191,7 +191,7 @@ extern int no_unaligned_warning;
* file position 0 and the value must be fully contained in the buffer
* sent to the write syscall. If dealing with strings respect the file
* position, but restrict this to the max length of the buffer, anything
- * passed the max lenght will be ignored. Multiple writes will append
+ * passed the max length will be ignored. Multiple writes will append
* to the buffer.
*
* These write modes control how current file position affects the behavior of
--
2.20.1



2019-01-07 22:11:07

by Kees Cook

[permalink] [raw]
Subject: Re: [PATCH] kernel/sysctl.c: fix typo

On Fri, Jan 4, 2019 at 1:47 PM Matteo Croce <[email protected]> wrote:
>
> Fix spelling mistake: "lenght" -> "length"
>
> Signed-off-by: Matteo Croce <[email protected]>

Acked-by: Kees Cook <[email protected]>

-Kees

> ---
> kernel/sysctl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/sysctl.c b/kernel/sysctl.c
> index 1825f712e73b..6b2691f5d4c9 100644
> --- a/kernel/sysctl.c
> +++ b/kernel/sysctl.c
> @@ -191,7 +191,7 @@ extern int no_unaligned_warning;
> * file position 0 and the value must be fully contained in the buffer
> * sent to the write syscall. If dealing with strings respect the file
> * position, but restrict this to the max length of the buffer, anything
> - * passed the max lenght will be ignored. Multiple writes will append
> + * passed the max length will be ignored. Multiple writes will append
> * to the buffer.
> *
> * These write modes control how current file position affects the behavior of
> --
> 2.20.1
>


--
Kees Cook