commit | 9b063d6f8e802701e3227f43989c527251e167e4 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed Nov 29 22:33:34 2017 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Dec 04 11:34:12 2017 -0500 |
tree | 67b4079ff842ae9035aa8024bfb790e9fd72f513 | |
parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 [diff] |
fix kcm_clone() 1) it's fput() or sock_release(), not both 2) don't do fd_install() until the last failure exit. 3) not a bug per se, but... don't attach socket to struct file until it's set up. Take reserving descriptor into the caller, move fd_install() to the caller, sanitize failure exits and calling conventions. Cc: stable@vger.kernel.org # v4.6+ Acked-by: Tom Herbert <tom@herbertland.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>