]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vfio: grab vfio_device reference *before* exposing the sucker via fd_install()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 18 Aug 2012 01:32:56 +0000 (21:32 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 18 Aug 2012 20:51:28 +0000 (16:51 -0400)
commit68021cefb2e1bd37a9627bc03d790792432f39a2
tree4f7921f9bc1976336afbbbf431450d1d247a6161
parent6a7e596644442db2f036ff556b3ec80547135ee2
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...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/vfio/vfio.c