Skip to content
Commit 2428d916 authored by Boris Brezillon's avatar Boris Brezillon Committed by Jagan Teki
Browse files

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: 5db66b3a

 ("cmd: mtd: add 'mtd' command")
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Tested-by: default avatarHeiko Schocher <hs@denx.de>
parent 772aa979
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment