commit | 793d279507d5312195d26b59eeb5db21da7910a3 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed Nov 29 22:37:00 2017 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Nov 29 22:37:00 2017 -0500 |
tree | a375754452ac324bb32b32e3931760ab9a46d19d | |
parent | 45c32f7eeb45d86e1981e5a8ea4da28b032ba28b [diff] |
make sock_alloc_file() do sock_release() on failures This changes calling conventions (and simplifies the hell out the callers). New rules: once struct socket had been passed to sock_alloc_file(), it's been consumed either by struct file or by sock_release() done by sock_alloc_file(). Either way the caller should not do sock_release() after that point. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>