Skip to content
Snippets Groups Projects
Commit 934ad4c2 authored by Al Viro's avatar Al Viro
Browse files

vfio: don't dereference after kfree...


Acked-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 312b90fb
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment