[PATCH 5.13 142/223] proc: Avoid mixing integer types in mem_rw()