commit | f748e6cd429a34b2237d21a3a9ca52889013ebfc | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed Jun 26 22:22:09 2019 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Jun 26 22:22:09 2019 -0400 |
tree | e53a2336008eedddd847709f52fe7d94d1dc74b9 | |
parent | d728cf79164bb38e9628d15276e636539f857ef1 [diff] |
copy_process(): don't use ksys_close() on cleanups anon_inode_getfd() should be used *ONLY* in situations when we are guaranteed to be past the last failure point (including copying the descriptor number to userland, at that). And ksys_close() should not be used for cleanups at all. anon_inode_getfile() is there for all nontrivial cases like that. Just use that... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>