commit | 31605debdf5459cc8aacabf192a911a803a81c26 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Fri Aug 17 21:32:56 2012 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Aug 22 10:26:42 2012 -0400 |
tree | 4f7921f9bc1976336afbbbf431450d1d247a6161 | |
parent | 90b1253e4139776e8257914ae9e2292d0de2fecc [diff] |
vfio: grab vfio_device reference *before* exposing the sucker via fd_install() It's not critical (anymore) since another thread closing the file will block on ->device_lock before it gets to dropping the final reference, but it's definitely cleaner that way... Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>