[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZlViQ8jLOp-9l9BN@infradead.org>
Date: Mon, 27 May 2024 21:49:07 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: iommu@...ts.linux.dev, linux-kernel@...r.kernel.org,
Robin Murphy <robin.murphy@....com>, Joerg Roedel <joro@...tes.org>,
Will Deacon <will@...nel.org>,
NĂcolas F . R . A . Prado <nfraprado@...labora.com>
Subject: Re: [PATCH v1 1/1] iommu/dma: Make SG mapping and syncing robust
against empty tables
On Tue, May 28, 2024 at 02:26:25AM +0300, Andy Shevchenko wrote:
> Statistically there are only a few cases in the kernel that do such a
> check. However, any attempt to make it alinged with the rest 99%+ cases
> will be a regression due to above mentioned relatively recent change.
> Instead of asking a caller to perform the checks, just return status quo
> to SG mapping and syncing callbacks, so they won't crash on
> uninitialised SG list.
This is not a valid use of the API, please fix the callers instead.
Powered by blists - more mailing lists