summaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
authorDavid Howells2017-07-04 18:25:02 +0200
committerAl Viro2017-07-06 09:27:09 +0200
commitf35157417215ec138c920320c746fdb3e04ef1d5 (patch)
tree5d8e536fc716419fe3b9474dcacb92c6f055930f /fs/super.c
parentLinux 4.12-rc7 (diff)
downloadkernel-qcow2-linux-f35157417215ec138c920320c746fdb3e04ef1d5.tar.gz
kernel-qcow2-linux-f35157417215ec138c920320c746fdb3e04ef1d5.tar.xz
kernel-qcow2-linux-f35157417215ec138c920320c746fdb3e04ef1d5.zip
Provide a function to create a NUL-terminated string from unterminated data
Provide a function, kmemdup_nul(), that will create a NUL-terminated string from an unterminated character array where the length is known in advance. This is better than kstrndup() in situations where we already know the string length as the strnlen() in kstrndup() is superfluous. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/super.c')
0 files changed, 0 insertions, 0 deletions