commit | 46ba2e8b0ba11278a8944835d05acacfa01ac390 | [log] [tgz] |
---|---|---|
author | Boris Brezillon <boris.brezillon@bootlin.com> | Sun Dec 02 10:54:29 2018 +0100 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Thu Dec 06 00:45:36 2018 +0530 |
tree | 0356e1ab16b62be0e2835316868c5cb4120cc3d5 | |
parent | a24d9854b4acefb18d5bff7da46a1075aef3e31f [diff] |
mtd: Make sure we don't parse MTD partitions belonging to another dev The mtdparts variable might contain partition definitions for several MTD devices. Each partition layout is separated by a ';', so let's make sure we don't pick a wrong name when mtdparts is malformed. Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Tested-by: Heiko Schocher <hs@denx.de>