diff options
author | Eric Auger <eric.auger@redhat.com> | 2017-08-11 16:16:06 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2017-08-30 23:00:47 +0300 |
commit | d935ad91f07d20268fca97b1ddc56a816ac71826 (patch) | |
tree | 0db9c015f9aa0f8599a92048aa024e194029b161 /scripts/gdb/linux/utils.py | |
parent | f203f7f1dbb298e1ed68f6c2f53715d13d5f3a0f (diff) | |
download | linux-d935ad91f07d20268fca97b1ddc56a816ac71826.tar.xz |
vfio: fix noiommu vfio_iommu_group_get reference count
In vfio_iommu_group_get() we want to increase the reference
count of the iommu group.
In noiommu case, the group does not exist and is allocated.
iommu_group_add_device() increases the group ref count. However we
then call iommu_group_put() which decrements it.
This leads to a "refcount_t: underflow WARN_ON".
Only decrement the ref count in case of iommu_group_add_device
failure.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions