Skip to content
Snippets Groups Projects
Commit 3d9cbe37 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Dan Williams
Browse files

libnvdimm, namespace: Replace kmemdup() with kstrndup()


kstrndup() takes care of '\0' terminator for the strings.

Use it here instead of kmemdup() + explicit terminating the input string.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 9065ed12
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment