diff --git a/mm/gup.c b/mm/gup.c index 527ec2c6cca3b758eeb9a5e353b4075146fe8634..d9e6fddcc51f06a1286c56a24c510c1a3efa8add 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1575,7 +1575,7 @@ int __get_user_pages_fast(unsigned long start, int nr_pages, int write, end = start + len; if (unlikely(!access_ok(write ? VERIFY_WRITE : VERIFY_READ, - start, len))) + (void __user *)start, len))) return 0; /*