]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbcdd821fcc316628bd6196334e27f7c3756282c7
tree0756d3f22daf455cec9214cae4df92e05ae064b5
parent0b05de419f0c204af6dccab6506ce6c99610453a
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