dpaa2-mac: bail if the dpmacs fwnode is not found
authorRobert-Ionut Alexa <robert-ionut.alexa@nxp.com>
Thu, 6 Jan 2022 13:59:03 +0000 (15:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Jan 2022 03:49:10 +0000 (19:49 -0800)
commit5b1e38c0792cc7a44997328de37d393f81b2501a
treed1f83628ebc01390fc0ea61031be2fe0fb8a4e7f
parent257367c0c9d800ef3065b440161596896e179038
dpaa2-mac: bail if the dpmacs fwnode is not found

The parent pointer node handler must be declared with a NULL
initializer. Before using it, a check must be performed to make
sure that a valid address has been assigned to it.

Signed-off-by: Robert-Ionut Alexa <robert-ionut.alexa@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c