Re: [PATCH] nvme-pci: Fix NULL ptr deref in EEH code

2018-03-20 Thread Christoph Hellwig
On Tue, Mar 20, 2018 at 11:22:42AM +1100, Michael Neuling wrote: > diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c > index b6f43b738f..404b346e3c 100644 > --- a/drivers/nvme/host/pci.c > +++ b/drivers/nvme/host/pci.c > @@ -2626,6 +2626,9 @@ static pci_ers_result_t nvme_error_detected

[PATCH] nvme-pci: Fix NULL ptr deref in EEH code

2018-03-19 Thread Michael Neuling
On powerpc on boot we can take an EEH event which results in this oops. cpu 0x23: Vector: 300 (Data Access) at [c00ff50f3800] pc: c008089a0eb0: nvme_error_detected+0x4c/0x90 [nvme] lr: c0026564: eeh_report_error+0xe0/0x110 sp: c00ff50f3a80 msr: 90009033 dar: 400 dsisr: