[PATCH 3.16 044/328] mtdchar: fix overflows in adjustment of `count`