]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
vfio: fix possible use after free of vfio group
authorIlya Lesokhin <ilyal@mellanox.com>
Thu, 14 Jul 2016 13:50:19 +0000 (16:50 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 14 Jul 2016 20:28:16 +0000 (14:28 -0600)
commitd370c917b9d4bef71e5d994aac5547f06f4dd76f
tree99038bc153212fb914f3ce1987360443ac3641df
parent05f0c03fbac1819e86c9d5db4e208b68fc1b9b5e
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: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c