Re: [PATCH] PCI: mvebu: Check if reset gpio is defined

2020-08-10 Thread Pali Rohár
On Friday 24 July 2020 15:29:30 Pali Rohár wrote: > Reset gpio is optional and it does not have to be defined for all boards. > > So in mvebu_pcie_powerdown() like in mvebu_pcie_powerup() check that reset > gpio is defined prior usage to prevent NULL pointer dereference. > > Signed-off-by: Pali R

[PATCH] PCI: mvebu: Check if reset gpio is defined

2020-07-24 Thread Pali Rohár
Reset gpio is optional and it does not have to be defined for all boards. So in mvebu_pcie_powerdown() like in mvebu_pcie_powerup() check that reset gpio is defined prior usage to prevent NULL pointer dereference. Signed-off-by: Pali Rohár --- drivers/pci/controller/pci-mvebu.c | 3 ++- 1 file