[PATCH 1/3] PCI: register and active bridge device before proceeding to scan

Sascha Hauer s.hauer at pengutronix.de
Thu Apr 30 23:38:05 PDT 2015


On Wed, Apr 29, 2015 at 09:59:46PM +0200, Lucas Stach wrote:
> The bridge device needs to be registered and activated before
> the scanning can proceed, as the bridge is the parent for other
> devices.
> 
> This fixes a NULL ptr derefernce when scanning PCI hierarchies
> with bridges behind bridges.
> 
> Signed-off-by: Lucas Stach <dev at lynxeye.de>
> ---
> Please apply to master, as this fixes a crash when activating
> PCI support on the GW54xx board.
> ---
>  drivers/pci/pci.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)


Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list