]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1bacdf8efceef5908df3140c881eeaae9b0006d2
treed1f83628ebc01390fc0ea61031be2fe0fb8a4e7f
parent9206656e2aa3856a2075922c204a66c61d9ac6a2
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