]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: check iommu_group_set_name() return value
authorLiam Ni <zhiguangni01@gmail.com>
Sat, 25 Jun 2022 11:42:39 +0000 (19:42 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 30 Jun 2022 16:57:58 +0000 (10:57 -0600)
commit9613df9be21b8a6a48257cc841e352726a9b7475
tree47643739227337e14d008f1f83b73c770578bf9f
parente6660b17db02fcf06fc6ff3e0d2d300b22824f0e
vfio: check iommu_group_set_name() return value

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

Signed-off-by: Liam Ni <zhiguangni01@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20220625114239.9301-1-zhiguangni01@gmail.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c