pci: pci-uclass: Check validity of ofnode
authorSuneel Garapati <sgarapati@marvell.com>
Tue, 5 May 2020 04:25:25 +0000 (21:25 -0700)
committerStefan Roese <sr@denx.de>
Tue, 25 Aug 2020 06:01:16 +0000 (08:01 +0200)
commitf0c369284d8da6691d3895d9d9d83015c141008a
tree24bb22e46dff69903f3e3567b161c2aedf1fbf8f
parenta3fac3f395afc5ad7aeb01fb7ed2d87d07c87ab0
pci: pci-uclass: Check validity of ofnode

Add check if the referenced ofnode is valid.

Signed-off-by: Suneel Garapati <sgarapati@marvell.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c