Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'vfio-v7.0-rc6' of https://github.com/awilliam/linux-vfio

Pull VFIO fix from Alex Williamson:

- Fix double-free and reference count underflow if dma-buf file
allocation fails (Alex Williamson)

* tag 'vfio-v7.0-rc6' of https://github.com/awilliam/linux-vfio:
vfio/pci: Fix double free in dma-buf feature

+2 -3
+2 -3
drivers/vfio/pci/vfio_pci_dmabuf.c
··· 301 301 */ 302 302 ret = dma_buf_fd(priv->dmabuf, get_dma_buf.open_flags); 303 303 if (ret < 0) 304 - goto err_dma_buf; 304 + dma_buf_put(priv->dmabuf); 305 + 305 306 return ret; 306 307 307 - err_dma_buf: 308 - dma_buf_put(priv->dmabuf); 309 308 err_dev_put: 310 309 vfio_device_put_registration(&vdev->vdev); 311 310 err_free_phys: