mtd: mtdswap: fix integer overflow