Re: [PATCH] lib/parser.c: switch match_strdup() over to use kmemdup_nul()

2018-08-30 Thread Andrew Morton
On Thu, 30 Aug 2018 12:44:36 -0700 Eric Biggers wrote: > From: Eric Biggers > > This simplifies the code. No change in behavior. > > ... > > --- a/lib/parser.c > +++ b/lib/parser.c > @@ -327,10 +327,6 @@ EXPORT_SYMBOL(match_strlcpy); > */ > char *match_strdup(const substring_t *s) > { >

Re: [PATCH] lib/parser.c: switch match_strdup() over to use kmemdup_nul()

2018-08-30 Thread Andrew Morton
On Thu, 30 Aug 2018 12:44:36 -0700 Eric Biggers wrote: > From: Eric Biggers > > This simplifies the code. No change in behavior. > > ... > > --- a/lib/parser.c > +++ b/lib/parser.c > @@ -327,10 +327,6 @@ EXPORT_SYMBOL(match_strlcpy); > */ > char *match_strdup(const substring_t *s) > { >

[PATCH] lib/parser.c: switch match_strdup() over to use kmemdup_nul()

2018-08-30 Thread Eric Biggers
From: Eric Biggers This simplifies the code. No change in behavior. Signed-off-by: Eric Biggers --- lib/parser.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/parser.c b/lib/parser.c index 3278958b472a..0142ef28f0eb 100644 --- a/lib/parser.c +++ b/lib/parser.c

[PATCH] lib/parser.c: switch match_strdup() over to use kmemdup_nul()

2018-08-30 Thread Eric Biggers
From: Eric Biggers This simplifies the code. No change in behavior. Signed-off-by: Eric Biggers --- lib/parser.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/parser.c b/lib/parser.c index 3278958b472a..0142ef28f0eb 100644 --- a/lib/parser.c +++ b/lib/parser.c