Re: [U-Boot] [PATCH v3 06/11] mtd: Be more strict on the "mtdparts=" prefix check

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: 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 --- Changes in v3: - None Changes

[U-Boot] [PATCH v3 06/11] mtd: Be more strict on the "mtdparts=" prefix check

2018-11-19 Thread Boris Brezillon
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 --- Changes in v3: - None Changes in v2: - New patch --- drivers/mtd/mtd_uboot.c | 2 +- 1 file c