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)
commit1c61d51e9695d00535d28fc2e123ba9397378707
tree47643739227337e14d008f1f83b73c770578bf9f
parentd1877e639bc6bf1c3131eda3f9ede73f8da96c22
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