can: dev: add missing of_node_put() after calling of_get_child_by_name()
authorWen Yang <wenyang@linux.alibaba.com>
Sat, 28 Sep 2019 14:29:05 +0000 (22:29 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Nov 2019 20:47:20 +0000 (21:47 +0100)
commitdb9ee384f6f71f7c5296ce85b7c1a2a2527e7c72
treeac9e404673cd4c89d2be450057431f16ab284443
parent3d1e5039f5f87a8731202ceca08764ee7cb010d3
can: dev: add missing of_node_put() after calling of_get_child_by_name()

of_node_put() needs to be called when the device node which is got
from of_get_child_by_name() finished using.

Fixes: 2290aefa2e90 ("can: dev: Add support for limiting configured bitrate")
Cc: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c