[PATCH 6.12 010/112] mtdchar: fix integer overflow in read/write ioctls