[PATCH v1] libnvdimm, namespace: Replace kmemdup() with kstrndup()