[PATCH 4.9 42/60] proc: Avoid mixing integer types in mem_rw()