Re: [PATCH] scsi: fix the dma_max_mapping_size call

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

 



Christoph,

> We should only call dma_max_mapping_size for devices that have a DMA
> mask set, otherwise we can run into a NULL pointer dereference that
> will crash the system.
>
> Also we need to do right shift to get the sectors from the size in
> bytes, not a left shift.

I queued this up since it breaks stuff for enough people. But I do feel
that some of Bart's concerns may be valid.

-- 
Martin K. Petersen	Oracle Linux Engineering



[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