Lines Matching refs:retval
956 int i, ch, retval; in flush_old_exec() local
963 retval = de_thread(current); in flush_old_exec()
964 if (retval) in flush_old_exec()
972 retval = exec_mmap(bprm->mm); in flush_old_exec()
973 if (retval) in flush_old_exec()
1030 return retval; in flush_old_exec()
1096 int retval; in prepare_binprm() local
1126 retval = security_bprm_set_creds(bprm); in prepare_binprm()
1127 if (retval) in prepare_binprm()
1128 return retval; in prepare_binprm()
1187 int try,retval; in search_binary_handler() local
1190 retval = security_bprm_check(bprm); in search_binary_handler()
1191 if (retval) in search_binary_handler()
1192 return retval; in search_binary_handler()
1198 retval = audit_bprm(bprm); in search_binary_handler()
1199 if (retval) in search_binary_handler()
1200 return retval; in search_binary_handler()
1202 retval = -ENOENT; in search_binary_handler()
1212 retval = fn(bprm, regs); in search_binary_handler()
1219 if (retval >= 0) { in search_binary_handler()
1229 return retval; in search_binary_handler()
1233 if (retval != -ENOEXEC || bprm->mm == NULL) in search_binary_handler()
1237 return retval; in search_binary_handler()
1241 if (retval != -ENOEXEC || bprm->mm == NULL) { in search_binary_handler()
1255 return retval; in search_binary_handler()
1283 int retval; in do_execve() local
1285 retval = unshare_files(&displaced); in do_execve()
1286 if (retval) in do_execve()
1289 retval = -ENOMEM; in do_execve()
1294 retval = mutex_lock_interruptible(¤t->cred_exec_mutex); in do_execve()
1295 if (retval < 0) in do_execve()
1298 retval = -ENOMEM; in do_execve()
1305 retval = PTR_ERR(file); in do_execve()
1315 retval = bprm_mm_init(bprm); in do_execve()
1316 if (retval) in do_execve()
1320 if ((retval = bprm->argc) < 0) in do_execve()
1324 if ((retval = bprm->envc) < 0) in do_execve()
1327 retval = prepare_binprm(bprm); in do_execve()
1328 if (retval < 0) in do_execve()
1331 retval = copy_strings_kernel(1, &bprm->filename, bprm); in do_execve()
1332 if (retval < 0) in do_execve()
1336 retval = copy_strings(bprm->envc, envp, bprm); in do_execve()
1337 if (retval < 0) in do_execve()
1340 retval = copy_strings(bprm->argc, argv, bprm); in do_execve()
1341 if (retval < 0) in do_execve()
1349 retval = search_binary_handler(bprm,regs); in do_execve()
1350 if (retval < 0) in do_execve()
1359 return retval; in do_execve()
1381 return retval; in do_execve()
1729 int retval = 0; in do_coredump() local
1745 retval = -ENOMEM; in do_coredump()
1769 retval = coredump_wait(exit_code, &core_state); in do_coredump()
1770 if (retval < 0) { in do_coredump()
1861 retval = binfmt->core_dump(signr, regs, file, core_limit); in do_coredump()
1863 if (retval) in do_coredump()