]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d9c1b6789a3cab61e6e90d431bb29d624aae3c3
tree85c491669fffdaf982b54457b9bec99cfc0dc496
parentdfe8599ce9df636226c8e6e1f358008c8db823fe
dm init: fix incorrect uses of kstrndup()

Fix 2 kstrndup() calls with incorrect argument order.

Fixes: 6627539d9698 ("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