From e836d3525d5abb91206bab85675e0c89113887fa Mon Sep 17 00:00:00 2001 From: Al Viro Date: Fri, 17 Aug 2012 19:49:09 -0400 Subject: [PATCH] --- yaml --- r: 322090 b: refs/heads/master c: 934ad4c235f87dcb9206abdfa22922358999afab h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/vfio/vfio.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 7e5b4f8c96f7..fc35240fa8fe 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 312b90fbed0e07f61d2f060789440a83df6bba23 +refs/heads/master: 934ad4c235f87dcb9206abdfa22922358999afab diff --git a/trunk/drivers/vfio/vfio.c b/trunk/drivers/vfio/vfio.c index 9591e2b509d7..0b025d58de81 100644 --- a/trunk/drivers/vfio/vfio.c +++ b/trunk/drivers/vfio/vfio.c @@ -416,8 +416,9 @@ static void vfio_device_release(struct kref *kref) /* Device reference always implies a group reference */ static void vfio_device_put(struct vfio_device *device) { + struct vfio_group *group = device->group; kref_put(&device->kref, vfio_device_release); - vfio_group_put(device->group); + vfio_group_put(group); } static void vfio_device_get(struct vfio_device *device)