Re: [PATCH] pci: dwc: Fix NULL pointer dereference due to missing assignment

From: Vivek Gautam
Date: Wed Mar 01 2017 - 23:02:49 EST




On 03/01/2017 02:32 AM, Bjorn Helgaas wrote:
On Tue, Feb 28, 2017 at 01:38:18PM +0530, Vivek Gautam wrote:
Add missing assignment of dw_pci core structure for
designware-plat.

Commit 8b130f815a6b ("PCI: dwc: Fix crashes seen due to missing
assignments") fixed all other platforms, but missed
designware-plat file.

Fixes: 442ec4c04d12 ("PCI: dwc: all: Split struct pcie_port into host-only and core structures")

Cc: Guenter Roeck <linux@xxxxxxxxxxxx>
Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
Cc: Kishon Vijay Abraham I <kishon@xxxxxx>
Cc: Jingoo Han <jingoohan1@xxxxxxxxx>
Cc: Joao Pinto <Joao.Pinto@xxxxxxxxxxxx>
Cc: linux-pci@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Vivek Gautam <vivek.gautam@xxxxxxxxxxxxxx>
Thanks, Vivek! I folded this into Guenter's patch and added your
Signed-off-by for this designware-plat fix. I'll ask Linus to pull this
before v4.11-rc1.

Thanks Bjorn.


BRs
Vivek

--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project