Re: [PATCH 0/2] Drop SCSI core dev->dma_mask check

"Martin K. Petersen" <[email protected]>
Newsgroups org.kernel.vger.linux-scsi,dev.linux.lists.iommu
Message-ID <[email protected]>
On Mon, 29 Jun 2026 08:53:08 +0000, John Garry wrote:

> In commit be8fcd4a8217 ("scsi: sas: Skip opt_sectors when DMA reports no
> real optimization hint"), the check for dev->dma_mask prior to calling
> dma_opt_mapping_size() was dropped.
> 
> However, it is not safe to do so, as dma_opt_mapping_size() ->
> dma_max_mapping_size() may try to dereference dev->dma_mask.
> 
> [...]

Applied to 7.3/scsi-queue, thanks!

[1/2] dma-mapping: make dma_max_mapping_size() return 0 for no DMA capability
      https://git.kernel.org/mkp/scsi/c/81d273096f12
[2/2] scsi: core: Drop dev->dma_mask check in evaluating max_sectors
      https://git.kernel.org/mkp/scsi/c/6e468644fc17

-- 
Martin K. Petersen
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.