diff --git a/[refs] b/[refs] index 6fe64bc5df96..8e9f3ae52d18 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 90b1253e4139776e8257914ae9e2292d0de2fecc +refs/heads/master: 31605debdf5459cc8aacabf192a911a803a81c26 diff --git a/trunk/drivers/vfio/vfio.c b/trunk/drivers/vfio/vfio.c index 887ae43276bb..17830c9c7cc6 100644 --- a/trunk/drivers/vfio/vfio.c +++ b/trunk/drivers/vfio/vfio.c @@ -1111,10 +1111,10 @@ static int vfio_group_get_device_fd(struct vfio_group *group, char *buf) */ filep->f_mode |= (FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE); - fd_install(ret, filep); - vfio_device_get(device); atomic_inc(&group->container_users); + + fd_install(ret, filep); break; } mutex_unlock(&group->device_lock);