[PATCH 4.18 150/235] mtdchar: fix overflows in adjustment of `count`