mm/gup: remove task_struct pointer for all gup code
[linux-block.git] / security / tomoyo / domain.c
index 53b3e1f5f22704681b84459a5622e84a400f17b6..dc4ecc0b20386713e512a0f0d5db9de99701939f 100644 (file)
@@ -914,7 +914,7 @@ bool tomoyo_dump_page(struct linux_binprm *bprm, unsigned long pos,
         * (represented by bprm).  'current' is the process doing
         * the execve().
         */
-       if (get_user_pages_remote(current, bprm->mm, pos, 1,
+       if (get_user_pages_remote(bprm->mm, pos, 1,
                                FOLL_FORCE, &page, NULL, NULL) <= 0)
                return false;
 #else