summaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
authorAl Viro <viro@ZenIV.linux.org.uk>2017-12-05 23:27:57 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-17 15:07:59 +0100
commite587b76e655441b7f3239dfb999c444c8573820c (patch)
treeb252a87d76c3374a0704c2d3132c54d1e4ae1e62 /virt/kvm
parentfc2f802193ccecf710ab608712b5b102dd9efc75 (diff)
downloadlinux-stable-e587b76e655441b7f3239dfb999c444c8573820c.tar.gz
linux-stable-e587b76e655441b7f3239dfb999c444c8573820c.tar.bz2
linux-stable-e587b76e655441b7f3239dfb999c444c8573820c.zip
fix kcm_clone()
commit a5739435b5a3b8c449f8844ecd71a3b1e89f0a33 upstream. 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. Acked-by: Tom Herbert <tom@herbertland.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions