commit | 1d2c14931ac8744967d760e78148717876cd2a21 | [log] [tgz] |
---|---|---|
author | Boris Brezillon <boris.brezillon@bootlin.com> | Sun Dec 02 10:54:27 2018 +0100 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Thu Dec 06 00:45:36 2018 +0530 |
tree | c6882ff6c1d466b8f587ebb990fe63659f17ff63 | |
parent | dde6ec759ca43c1714100ec9b7c4ae00fec86ca8 [diff] |
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: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Tested-by: Heiko Schocher <hs@denx.de>