1
0
Fork 0
remarkable-linux/drivers/net/can/mscan
Nicholas Mc Guire 0b14a856f9 can: mpc5xxx_can: check of_iomap return before use
[ Upstream commit b5c1a23b17 ]

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: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: commit afa17a500a ("net/can: add driver for mscan family & mpc52xx_mscan")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-05 09:26:28 +02:00
..
Kconfig can: mscan: Fix Kconfig dependencies 2014-05-19 09:38:21 +02:00
Makefile net: can: use kbuild magic to inherit debug settings 2014-08-18 01:03:38 +02:00
mpc5xxx_can.c can: mpc5xxx_can: check of_iomap return before use 2018-09-05 09:26:28 +02:00
mscan.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
mscan.h can: Fix FSF address in file headers 2013-12-17 11:47:21 +01:00