commit | a24d9854b4acefb18d5bff7da46a1075aef3e31f | [log] [tgz] |
---|---|---|
author | Boris Brezillon <boris.brezillon@bootlin.com> | Sun Dec 02 10:54:28 2018 +0100 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Thu Dec 06 00:45:36 2018 +0530 |
tree | 64a94f9703030b27dc035d31ca7642d15a325976 | |
parent | 1d2c14931ac8744967d760e78148717876cd2a21 [diff] |
mtd: Make sure the name passed in mtdparts fits in mtd_name[] The local mtd_name[] variable is limited in size. Return an error if the name passed in mtdparts does not fit in this local var. Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Tested-by: Heiko Schocher <hs@denx.de>