Re: [PATCH] scsi: lpfc: fix calls to dma_set_mask_and_coherent()

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

 



On Tue, 2019-02-12 at 10:34 -0800, Christoph Hellwig wrote:
> On Tue, Feb 12, 2019 at 10:37:45AM -0500, Ewan D. Milne wrote:
> > 
> > It looks like this would introduce a different problem.  "error" is set to
> > -ENODEV earlier in the two functions so that the various error paths will return
> > that value.  If it is overwritten with a successful result from the call to
> > dma_set_mask_and_coherent() but a later call to e.g. ioremap() fails, the
> > functions will incorrectly return a value indicating that they have succeeded.
> > 
> > It also appears as if the patches to hptiop, hisi_sas and bfa need to be fixed up.
> > I don't have a test environment for these, although I might be able to modify the
> > test environment for bfa.  Martin/James, what about the others?
> 
> I don't have a test environment for them either, and I doubt many
> people have.  If you don't feel comfortable I can send a fix for
> them.

[ removed cc: stable ]

Thanks, I have the patches written but Hannes has posted already.
I prefer to test before posting but in this case testing one driver with
a similar pattern is better than not having a fix available, I think.
As long as it gets enough review.

-Ewan



[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