[PATCH 4.4 49/70] mtdchar: fix overflows in adjustment of `count`