summaryrefslogtreecommitdiff
path: root/drivers/vfio
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2026-03-31 07:47:05 +1000
committerDave Airlie <airlied@redhat.com>2026-03-31 07:51:02 +1000
commitf6225b546dfccfc322b18c0d757b7b9c767a1e27 (patch)
tree14aee2a223e3f5e3e7850e6674d8367b4c835235 /drivers/vfio
parenta51973c5dff8a0f01cc7d1b2007306ea0004fa16 (diff)
parent7aaa8047eafd0bd628065b15757d9b48c5f9c07d (diff)
downloadlinux-next-f6225b546dfccfc322b18c0d757b7b9c767a1e27.tar.gz
linux-next-f6225b546dfccfc322b18c0d757b7b9c767a1e27.zip
BackMerge tag 'v7.0-rc6' into drm-next
Linux 7.0-rc6 Requested by a few people on irc to resolve conflicts in other tress. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/vfio')
-rw-r--r--drivers/vfio/pci/vfio_pci_dmabuf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/vfio/pci/vfio_pci_dmabuf.c b/drivers/vfio/pci/vfio_pci_dmabuf.c
index 3a803923141b..f87fd32e4a01 100644
--- a/drivers/vfio/pci/vfio_pci_dmabuf.c
+++ b/drivers/vfio/pci/vfio_pci_dmabuf.c
@@ -316,11 +316,10 @@ int vfio_pci_core_feature_dma_buf(struct vfio_pci_core_device *vdev, u32 flags,
*/
ret = dma_buf_fd(priv->dmabuf, get_dma_buf.open_flags);
if (ret < 0)
- goto err_dma_buf;
+ dma_buf_put(priv->dmabuf);
+
return ret;
-err_dma_buf:
- dma_buf_put(priv->dmabuf);
err_dev_put:
vfio_device_put_registration(&vdev->vdev);
err_free_phys: