Commit a9523c1e authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse: fault_in_pages_readable() annotation

parent fa8eda08
......@@ -220,13 +220,13 @@ static inline void fault_in_pages_readable(const char __user *uaddr, int size)
volatile char c;
int ret;
ret = __get_user(c, (char *)uaddr);
ret = __get_user(c, uaddr);
if (ret == 0) {
const char __user *end = uaddr + size - 1;
if (((unsigned long)uaddr & PAGE_MASK) !=
((unsigned long)end & PAGE_MASK))
__get_user(c, (char *)end);
__get_user(c, end);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment