X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Fexec.c;h=a098c133d8d74039e46256ac365883148911b9ae;hb=2aae0a937ad169752b5710d4f210c1ae7a49d3cf;hp=2dc489c164fed78755d5485bc052db45f777cd6c;hpb=f7464060f7ab9a2424428008f0ee9f1e267e410f;p=linux-2.6-microblaze.git diff --git a/fs/exec.c b/fs/exec.c index 2dc489c164fe..a098c133d8d7 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1272,7 +1272,9 @@ int begin_new_exec(struct linux_binprm * bprm) * not visibile until then. This also enables the update * to be lockless. */ - set_mm_exe_file(bprm->mm, bprm->file); + retval = set_mm_exe_file(bprm->mm, bprm->file); + if (retval) + goto out; /* If the binary is not readable then enforce mm->dumpable=0 */ would_dump(bprm, bprm->file);