aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pagemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pagemap.h')
-rw-r--r--include/linux/pagemap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
index 3c62ed40849..78a702ce4fc 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -423,8 +423,10 @@ static inline int fault_in_pages_readable(const char __user *uaddr, int size)
423 const char __user *end = uaddr + size - 1; 423 const char __user *end = uaddr + size - 1;
424 424
425 if (((unsigned long)uaddr & PAGE_MASK) != 425 if (((unsigned long)uaddr & PAGE_MASK) !=
426 ((unsigned long)end & PAGE_MASK)) 426 ((unsigned long)end & PAGE_MASK)) {
427 ret = __get_user(c, end); 427 ret = __get_user(c, end);
428 (void)c;
429 }
428 } 430 }
429 return ret; 431 return ret;
430} 432}