]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: Be more strict on the "mtdparts=" prefix check
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 2 Dec 2018 09:54:27 +0000 (10:54 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 5 Dec 2018 19:15:36 +0000 (00:45 +0530)
commitc38587b7e5f56ead2ac1e7bdd4333138ce1ef925
treec6882ff6c1d466b8f587ebb990fe63659f17ff63
parent9572e03c7363b780a7fec0bfdc41c92af34f0c26
mtd: Be more strict on the "mtdparts=" prefix check

strstr() does not guarantee that the string we're searching for is
placed at the beginning. Use strncmp() instead.

Fixes: 3a11299ea117 ("cmd: mtd: add 'mtd' command")
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Tested-by: Heiko Schocher <hs@denx.de>
drivers/mtd/mtd_uboot.c