diff --git a/mm/gup.c b/mm/gup.c index 6f47697f8fb0..d8a33dd1430d 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1404,7 +1404,8 @@ retry: * * This takes care of mlocking the pages too if VM_LOCKED is set. * - * return 0 on success, negative error code on error. + * Return either number of pages pinned in the vma, or a negative error + * code on error. * * vma->vm_mm->mmap_lock must be held. *