Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment