mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
do_last(): take fput() on error after opening to out:
make it conditional on *opened & FILE_OPENED; in addition to getting rid of exit_fput: thing, it simplifies atomic_open() cleanup on may_open() failure. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
47f9dbd387
commit
fe9ec8291f
1 changed files with 5 additions and 17 deletions
22
fs/namei.c
22
fs/namei.c
Loading…
Add table
Add a link
Reference in a new issue