summaryrefslogtreecommitdiff
path: root/include/dt-bindings
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-07-04 19:25:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-25 13:01:18 +0300
commite8ee445b600807c8d6ec02a5d6fce2beaf3c9a23 (patch)
treed2249899a28d5e0554948a6ecf11cd256b07139c /include/dt-bindings
parent48e014f330c3fa1b32e134750e89ed5ef21b0e05 (diff)
downloadlinux-e8ee445b600807c8d6ec02a5d6fce2beaf3c9a23.tar.xz
Provide a function to create a NUL-terminated string from unterminated data
commit f35157417215ec138c920320c746fdb3e04ef1d5 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/dt-bindings')
0 files changed, 0 insertions, 0 deletions