new helper: memdup_user_nul()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 24 Dec 2015 05:06:05 +0000 (00:06 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Jan 2016 15:20:19 +0000 (10:20 -0500)
commite9d408e107db9a554b36c3a79f67b37dd3e16da0
tree97383e40e388aa302828ffb2ddd845b257109118
parent74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6
new helper: memdup_user_nul()

Similar to memdup_user(), except that allocated buffer is one byte
longer and '\0' is stored after the copied data.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/string.h
mm/util.c