[PATCH v1 0/2] iommu/virtio: Fix probe error handling
weimin xiong <[email protected]>
| Newsgroups | dev.linux.lists.virtualization,dev.linux.lists.iommu,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Xiong Weimin <[email protected]> Hi, This small series fixes two probe-time error handling issues in the virtio-iommu driver. The first patch avoids dereferencing a device after dropping the reference returned by bus_find_device(). The second patch propagates failures from iommu_device_register() and unwinds the resources that were set up earlier in probe. Xiong Weimin (2): iommu/virtio: Avoid use-after-put in viommu_get_by_fwnode iommu/virtio: Handle iommu_device_register() failures drivers/iommu/virtio-iommu.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) -- 2.43.0