author: Marcelo Henrique Cerri <marcelo.cerri@canonical.com> 2021-06-30 18:54:38 -0700
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-28 14:37:34 +0200
commit: 343b467acb55ccafdbb5ad7a3df397040758bff7
parent: 11b40c8a67fe12d9ce449c130be9567a9663ad72
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 9cbd915025ad..a0a2fc1c9da2 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;