[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.