提交 934ad4c2 编写于 作者: A Al Viro

vfio: don't dereference after kfree...

Acked-by: NAlex Williamson <alex.williamson@redhat.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 312b90fb
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册