[PATCH] PCI: layerscape: Fix kernel panic on accessing NULL pointer
Leo Li
leoyang.li at nxp.com
Fri Oct 21 09:05:04 PDT 2016
> -----Original Message-----
> From: Bjorn Helgaas [mailto:helgaas at kernel.org]
> Sent: Friday, October 21, 2016 10:37 AM
> To: Leo Li <leoyang.li at nxp.com>
> Cc: Bjorn Helgaas <bhelgaas at google.com>; Minghuan Lian
> <minghuan.Lian at freescale.com>; Mingkai Hu <mingkai.hu at freescale.com>;
> Roy Zang <tie-fei.zang at freescale.com>; linux-pci at vger.kernel.org; linux-
> kernel at vger.kernel.org; linux-arm-kernel at lists.infradead.org; Stuart Yoder
> <stuart.yoder at nxp.com>
> Subject: Re: [PATCH] PCI: layerscape: Fix kernel panic on accessing NULL pointer
>
> On Mon, Oct 17, 2016 at 04:44:06PM -0500, Li Yang wrote:
> > Commit fefe6733e added reference to the pcie->drvdata before it is
> > initialized which causes a kernel panic. Fix the problem by
> > initializing the pcie->drvdata earlier before it is used.
> >
> > Reported-by: Stuart Yoder <stuart.yoder at nxp.com>
> > Signed-off-by: Li Yang <leoyang.li at nxp.com>
>
> I applied Marc Zyngier's identical patch to for-linus for v4.9. I don't know which
> was posted first, but I saw Marc's first. Sorry I didn't at least credit you when I
> applied it.
It's ok. Seems Marc sent the patch earlier and I didn't notice his patch. There is no difference as long as the problem is addressed. :)
Regards,
Leo
More information about the linux-arm-kernel
mailing list