Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b5c1a23b authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Marc Kleine-Budde
Browse files

can: mpc5xxx_can: check of_iomap return before use



of_iomap() can return NULL so that return needs to be checked and NULL
treated as failure. While at it also take care of the missing
of_node_put() in the error path.

Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Fixes: commit afa17a50 ("net/can: add driver for mscan family & mpc52xx_mscan")
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 393753b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment