Re: [PATCH] scsi: fix the dma_max_mapping_size call

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

 



On Mon, Jul 22, 2019 at 12:37:44PM -0700, Bart Van Assche wrote:
> Is it possible that a device defines a maximum mapping size but no DMA 
> mask? Is the NULL pointer dereference that can happen an attempt to 
> dereference dev->dma_ops? Have you considered to test the get_dma_ops() 
> return value instead of dev->dma_mask? I think that would make this code 
> easier to read.

The dma max mapping size needs dma support an thus a dma mask, as we've
phased out support for a NULL dma_mask for dma supporting devices.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux