dm init: fix incorrect uses of kstrndup()
authorGen Zhang <blackgod016574@gmail.com>
Wed, 29 May 2019 01:33:20 +0000 (09:33 +0800)
committerMike Snitzer <snitzer@redhat.com>
Tue, 25 Jun 2019 17:34:52 +0000 (13:34 -0400)
commitdec7e6494e1aea6bf676223da3429cd17ce0af79
tree85c491669fffdaf982b54457b9bec99cfc0dc496
parent9e0babf2c06c73cda2c0cd37a1653d823adb40ec
dm init: fix incorrect uses of kstrndup()

Fix 2 kstrndup() calls with incorrect argument order.

Fixes: 6bbc923dfcf5 ("dm: add support to directly boot to a mapped device")
Cc: stable@vger.kernel.org # v5.1
Signed-off-by: Gen Zhang <blackgod016574@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-init.c