Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322093
b: refs/heads/master
c: 90b1253
h: refs/heads/master
i:
  322091: 1710876
v: v3
  • Loading branch information
Al Viro committed Aug 22, 2012
1 parent c9397c7 commit 8213077
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d2cd3ce815b302e885b44ca1bdbe3c7db321c7a
refs/heads/master: 90b1253e4139776e8257914ae9e2292d0de2fecc
3 changes: 1 addition & 2 deletions trunk/drivers/vfio/vfio.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ static void vfio_device_release(struct kref *kref)
struct vfio_device, kref);
struct vfio_group *group = device->group;

mutex_lock(&group->device_lock);
list_del(&device->group_next);
mutex_unlock(&group->device_lock);

Expand All @@ -412,7 +411,7 @@ static void vfio_device_release(struct kref *kref)
static void vfio_device_put(struct vfio_device *device)
{
struct vfio_group *group = device->group;
kref_put(&device->kref, vfio_device_release);
kref_put_mutex(&device->kref, vfio_device_release, &group->device_lock);
vfio_group_put(group);
}

Expand Down

0 comments on commit 8213077

Please sign in to comment.