Re: [PATCH 5/5] esp_scsi: move dma mapping into the core code

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

 



On Fri, Oct 12, 2018 at 04:45:57PM +1100, Finn Thain wrote:
> > +	if (esp->flags & ESP_FLAG_NO_DMA_MAP)
> > +		return;
> > +
> > +	dma_unmap_single(esp->dev, ent->sense_dma, SCSI_SENSE_BUFFERSIZE,
> > +			 DMA_FROM_DEVICE);
> > +	ent->sense_ptr = NULL;
> > +}
> > +
> 
> I think it is better to clear ent->sense_ptr unconditionally, as before.

Ok.



[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