[PATCH 1/1] cmd: mtd: avoid unintentional integer overflow