Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1506122

RE: [PATCH] PCI: layerscape: Fix kernel panic on accessing NULL pointer

From Leo Li <leoyang.li@nxp.com>
Newsgroups linux.kernel
Subject RE: [PATCH] PCI: layerscape: Fix kernel panic on accessing NULL pointer
Date 2016-10-21 18:20 +0200
Message-ID <suKI2-84M-11@gated-at.bofh.it> (permalink)
References <stoqe-1pY-41@gated-at.bofh.it> <suK5k-7xe-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



> -----Original Message-----
> From: Bjorn Helgaas [mailto:helgaas@kernel.org]
> Sent: Friday, October 21, 2016 10:37 AM
> To: Leo Li <leoyang.li@nxp.com>
> Cc: Bjorn Helgaas <bhelgaas@google.com>; Minghuan Lian
> <minghuan.Lian@freescale.com>; Mingkai Hu <mingkai.hu@freescale.com>;
> Roy Zang <tie-fei.zang@freescale.com>; linux-pci@vger.kernel.org; linux-
> kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; Stuart Yoder
> <stuart.yoder@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@nxp.com>
> > Signed-off-by: Li Yang <leoyang.li@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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH] PCI: layerscape: Fix kernel panic on accessing NULL  pointer Bjorn Helgaas <helgaas@kernel.org> - 2016-10-21 17:40 +0200
  RE: [PATCH] PCI: layerscape: Fix kernel panic on accessing NULL  pointer Leo Li <leoyang.li@nxp.com> - 2016-10-21 18:20 +0200

csiph-web