[PATCH 3.18 096/105] mtdchar: fix overflows in adjustment of `count`