]> git.karo-electronics.de Git - karo-tx-linux.git/commit
exec: move the final allow_write_access/fput into free_bprm()
authorOleg Nesterov <oleg@redhat.com>
Fri, 3 Jan 2014 03:10:31 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:31 +0000 (14:10 +1100)
commit810835227ec7eb3ed02bd65c1df72c81ca21d8b0
tree826cae2c100e62e51b39598cee69dfac3ea3ee61
parentd895bb36141f6c072a3f54df2f08b6c5bece4833
exec: move the final allow_write_access/fput into free_bprm()

Both success/failure paths cleanup bprm->file, we can move this
code into free_bprm() to simlify and cleanup this logic.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/exec.c