aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2016-07-14 16:54:17 +0000
committerPaolo Bonzini <[email protected]>2016-07-14 17:11:22 +0000
commit506cfba9e726ab6842883fdd567a9a7c467e7492 (patch)
tree7f6f26ce5413b63c066fe974231be881841e8ffa /lib/mpi/mpicoder.c
parentRevert "KVM: release anon file in failure path of vm creation" (diff)
downloadkernel-506cfba9e726ab6842883fdd567a9a7c467e7492.tar.gz
kernel-506cfba9e726ab6842883fdd567a9a7c467e7492.zip
KVM: don't use anon_inode_getfd() before possible failures
Once anon_inode_getfd() has succeeded, it's impossible to undo in a clean way and no, sys_close() is not usable in such cases. Use anon_inode_getfile() and get_unused_fd_flags() to get struct file and descriptor and do *not* install the file into the descriptor table until after the last possible failure exit. Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions