]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: Fix handling of error returned by 'vfio_group_get_from_dev()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 30 Nov 2016 07:06:12 +0000 (08:06 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 1 Dec 2016 15:45:49 +0000 (08:45 -0700)
commit429e96a9f843d371fc4c9532e0ead446a22ac4cf
treef9acd3ff5693a5bfec056c531808aee9963adf78
parentcf7246903ae2f449ef06796d2ebfe5b84d3fa55a
vfio: Fix handling of error returned by 'vfio_group_get_from_dev()'

'vfio_group_get_from_dev()' seems to return only NULL on error, not an
error pointer.

Fixes: 52eba349410d ("vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops")
Fixes: 91a1fc0ded32 ("vfio iommu: Add blocking notifier to notify DMA_UNMAP")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c