[PATCH v4] mtd: diskonchip: Cast an operand to prevent potential overflow