iommu/virtio: Fix probe error handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | iommu/virtio: Avoid use-after-put in viommu_get_by_fwnodedrivers/ | +6 | 0 replies | |
| 2/2 | iommu/virtio: Handle iommu_device_register() failuresdrivers/ | +6 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH v1 0/2] iommu/virtio: Fix probe error handling
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(-)
Signature · 1 line
2.43.0