[PATCH 4.14 111/173] mtdchar: fix overflows in adjustment of `count`