[PATCH 5.10 105/167] proc: Avoid mixing integer types in mem_rw()