]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/type1: Fix error return code in vfio_iommu_type1_attach_group()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 9 Feb 2017 16:01:58 +0000 (16:01 +0000)
committerJoerg Roedel <jroedel@suse.de>
Fri, 10 Feb 2017 14:09:11 +0000 (15:09 +0100)
commitb63970b251bd4138d61eccda8a5608d1b8703d9c
tree53269e4f52fb79cb2c9fee764a4986283b38107b
parent170cb667064b73a5860f09276612532d2d8805f0
vfio/type1: Fix error return code in vfio_iommu_type1_attach_group()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: b26d9d22200d ("vfio/type1: Allow transparent MSI IOVA allocation")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/vfio/vfio_iommu_type1.c