vfio: check vfio_register_iommu_driver() return value
authorBo Liu <liubo03@inspur.com>
Wed, 22 Jun 2022 04:56:51 +0000 (00:56 -0400)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 27 Jun 2022 19:57:08 +0000 (13:57 -0600)
commita13b1e472b93f69c35976351e59831564ed6a376
tree0756d3f22daf455cec9214cae4df92e05ae064b5
parentd1877e639bc6bf1c3131eda3f9ede73f8da96c22
vfio: check vfio_register_iommu_driver() return value

As vfio_register_iommu_driver() can fail, we should check the return value.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Link: https://lore.kernel.org/r/20220622045651.5416-1-liubo03@inspur.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c