[PATCH OLK-6.6] mtdchar: fix integer overflow in read/write ioctls