Re: [PATCH v3 09/15] iommufd: Data structure to provide IOVA to PFN mapping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 25, 2022 at 03:12:18PM -0300, Jason Gunthorpe wrote:

> diff --git a/drivers/iommu/iommufd/io_pagetable.c b/drivers/iommu/iommufd/io_pagetable.c
> new file mode 100644
> index 00000000000000..27cbb652ee33cd
> --- /dev/null
> +++ b/drivers/iommu/iommufd/io_pagetable.c

> +void iopt_enable_large_pages(struct io_pagetable *iopt)
> +{
> +	down_write(&iopt->domains_rwsem);
> +	down_write(&iopt->iova_rwsem);
> +	WRITE_ONCE(iopt->disable_large_pages, false);
> +	iopt_calculate_iova_alignment(iopt);

Coverity reports unchecked return value, perhaps WARN_ON()?



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux