]> git.baikalelectronics.ru Git - kernel.git/commit
lib/parser.c: switch match_strdup() over to use kmemdup_nul()
authorEric Biggers <ebiggers@google.com>
Tue, 30 Oct 2018 22:05:22 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Oct 2018 15:54:12 +0000 (08:54 -0700)
commit1ca650521ed2ad3e443bc3dd257d720e52d42c3d
treee707c86e4c6b3784c50c0a00dcbf3fcc61fa826e
parentfcfe5bf476ace72db3327a076c3d840f7fedf24e
lib/parser.c: switch match_strdup() over to use kmemdup_nul()

This simplifies the code.  No change in behavior.

Link: http://lkml.kernel.org/r/20180830194436.188867-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/parser.c