diff --git a/[refs] b/[refs] index 6b35976eca1b..9a1736acdbb6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bbcdac0c20aa20d1daad41d9c138102b70e5aae4 +refs/heads/master: 4710d1ac4c491dd8a28f57946214c0b5fe73cc87 diff --git a/trunk/fs/proc/proc_misc.c b/trunk/fs/proc/proc_misc.c index 5a16090a6d6e..7e277f2ad466 100644 --- a/trunk/fs/proc/proc_misc.c +++ b/trunk/fs/proc/proc_misc.c @@ -716,7 +716,7 @@ static ssize_t kpagecount_read(struct file *file, char __user *buf, pfn = src / KPMSIZE; count = min_t(size_t, count, (max_pfn * KPMSIZE) - src); if (src & KPMMASK || count & KPMMASK) - return -EIO; + return -EINVAL; while (count > 0) { ppage = NULL; @@ -782,7 +782,7 @@ static ssize_t kpageflags_read(struct file *file, char __user *buf, pfn = src / KPMSIZE; count = min_t(unsigned long, count, (max_pfn * KPMSIZE) - src); if (src & KPMMASK || count & KPMMASK) - return -EIO; + return -EINVAL; while (count > 0) { ppage = NULL;