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 Sat, 13 Oct 2018, Christoph Hellwig wrote:

> On Sat, Oct 13, 2018 at 09:24:51AM +1100, Finn Thain wrote:
> > >  	struct scatterlist *sg = scsi_sglist(cmd);
> > > -	int dir = cmd->sc_data_direction;
> > > -	int total, i;
> > > +	int total = 0, i;
> > >  
> > > -	if (dir == DMA_NONE)
> > > -		return;
> > > -
> > 
> > Removing this DMA_NONE test caused an oops in my test. sg becomes a NULL 
> > pointer.
> 
> Does it work if you add the check back?
> 

Yes.

-- 



[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