提交 d370c917 编写于 作者: I Ilya Lesokhin 提交者: Alex Williamson

vfio: fix possible use after free of vfio group

The vfio group should be released after
the vfio_group_try_dissolve_container call.
The code should not rely on someone else to hold
a reference on the group.
Signed-off-by: NIlya Lesokhin <ilyal@mellanox.com>
Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
上级 05f0c03f
......@@ -1711,8 +1711,8 @@ EXPORT_SYMBOL_GPL(vfio_group_get_external_user);
void vfio_group_put_external_user(struct vfio_group *group)
{
vfio_group_put(group);
vfio_group_try_dissolve_container(group);
vfio_group_put(group);
}
EXPORT_SYMBOL_GPL(vfio_group_put_external_user);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册