mbox series

[v1,0/2] iommufd: Fix a small bug in fault.c

Message ID cover.1733212723.git.nicolinc@nvidia.com (mailing list archive)
Headers show
Series iommufd: Fix a small bug in fault.c | expand

Message

Nicolin Chen Dec. 3, 2024, 8:02 a.m. UTC
There are a few patches in vIRQ series that rework the fault.c file. So,
we should fix this before that bigger series touches the same code.

And add missing coverage for IOMMU_FAULT_QUEUE_ALLOC in iommufd_fail_nth.

Thanks!
Nicolin

Nicolin Chen (2):
  iommufd/fault: Fix out_fput in iommufd_fault_alloc()
  iommufd/selftest: Cover IOMMU_FAULT_QUEUE_ALLOC in iommufd_fail_nth

 drivers/iommu/iommufd/fault.c                    |  2 --
 tools/testing/selftests/iommu/iommufd_fail_nth.c | 14 ++++++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

Comments

Jason Gunthorpe Dec. 3, 2024, 4:23 p.m. UTC | #1
On Tue, Dec 03, 2024 at 12:02:53AM -0800, Nicolin Chen wrote:
> There are a few patches in vIRQ series that rework the fault.c file. So,
> we should fix this before that bigger series touches the same code.
> 
> And add missing coverage for IOMMU_FAULT_QUEUE_ALLOC in iommufd_fail_nth.
> 
> Thanks!
> Nicolin
> 
> Nicolin Chen (2):
>   iommufd/fault: Fix out_fput in iommufd_fault_alloc()
>   iommufd/selftest: Cover IOMMU_FAULT_QUEUE_ALLOC in iommufd_fail_nth

Applied to for-rc, thanks

Jason