diff --git a/fs/proc/base.c b/fs/proc/base.c index 9cbd915025ad75a9a52e07bcd9faedf4eaf93548..a0a2fc1c9da26d2f5725f33f5a1bbfbe8c8b26dd 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -854,7 +854,7 @@ static ssize_t mem_rw(struct file *file, char __user *buf, flags = FOLL_FORCE | (write ? FOLL_WRITE : 0); while (count > 0) { - int this_len = min_t(int, count, PAGE_SIZE); + size_t this_len = min_t(size_t, count, PAGE_SIZE); if (write && copy_from_user(page, buf, this_len)) { copied = -EFAULT;