Re: [PATCH 1/9] Provide a function to create a NUL-terminated string from unterminated data
From: David Howells
Date: Wed May 03 2017 - 16:13:21 EST
Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> wrote:
> > Provide a function, kstrcreate()
>
> <bikeshed>why not kmemdup_nul, since it seems to be to kmemdup exactly as
> memdup_user_nul is to memdup_user?</bikeshed>
Yeah, that would work too. Or kmem2str().
David