]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: parser: cmdline: Support MTD names containing one or more colons
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 29 Apr 2020 16:53:47 +0000 (09:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 09:11:56 +0000 (11:11 +0200)
commit17fd0a642bbc15dec94c50e35c80c9e0fab590ea
tree6cb30a9cd0dee6928101bbb8a85b4a7db74a890f
parentda1935ae27d6af755d561204cf4b2ba2cf39fbd0
mtd: parser: cmdline: Support MTD names containing one or more colons

[ Upstream commit eb13fa0227417e84aecc3bd9c029d376e33474d3 ]

Looks like some drivers define MTD names with a colon in it, thus
making mtdpart= parsing impossible. Let's fix the parser to gracefully
handle that case: the last ':' in a partition definition sequence is
considered instead of the first one.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Ron Minnich <rminnich@google.com>
Tested-by: Ron Minnich <rminnich@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/cmdlinepart.c