]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 11:13:38 +0000 (13:13 +0200)
commit6e17b11ffedd6e935c507c39b92e9c8ddb88c3c9
treef8cbe051fc4713fd633b633a8517fe36c5121422
parente3d6fe0b33dfa707a37d0cd750bb2d191c3a64dc
dm init: fix incorrect uses of kstrndup()

commit dec7e6494e1aea6bf676223da3429cd17ce0af79 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-init.c