diff --git a/mm/gup.c b/mm/gup.c
index 6f47697f8fb0b2320cd5df12f2e073ba1b0ee598..d8a33dd1430d9315a2bd6037d8f3fb7937de3cf6 100644
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -1404,7 +1404,8 @@ static __always_inline long __get_user_pages_locked(struct task_struct *tsk,
  *
  * 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.
  *