[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aSSP7sG0OMFGElS9@willie-the-truck>
Date: Mon, 24 Nov 2025 17:03:42 +0000
From: Will Deacon <will@...nel.org>
To: Aashish Sharma <aashish@...hishsharma.net>
Cc: Vineeth Pillai <vineeth@...byteword.org>,
Dmytro Maluka <dmaluka@...gle.com>, Joerg Roedel <joro@...tes.org>,
Robin Murphy <robin.murphy@....com>, iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org, Aashish Sharma <shraash@...gle.com>
Subject: Re: [PATCH] iommu: Remove redundant null check in
iommu_iotlb_gather_queued
On Mon, Nov 10, 2025 at 09:19:52PM -0800, Aashish Sharma wrote:
> The callers of 'iommu_iotlb_gather_queued' always have a non-null
> 'gather', so we don't need to check for the same in the function.
That's not obviously true to me, how did you check it?
For example, msm_iommu_pagetable_unmap() appears to call into
io_pgtable_ops::unmap_pages() with a NULL gather pointer.
Will
Powered by blists - more mailing lists