[PATCH 5.1 17/55] dm init: fix incorrect uses of kstrndup()