gpu: ipu-v3: prg: fix device node leak in ipu_prg_lookup_by_phandle
authorTobias Jordan <Tobias.Jordan@elektrobit.com>
Thu, 15 Feb 2018 14:35:30 +0000 (15:35 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 19 Feb 2018 14:12:59 +0000 (15:12 +0100)
commit3addaba8141bc6a4f649a48f46e552af32922147
tree1bb67ee2c11387eb33f5321155a38766fd983fac
parentc795f3052b60b01e80485fad98c53e5e67d093c9
gpu: ipu-v3: prg: fix device node leak in ipu_prg_lookup_by_phandle

Before returning, call of_node_put() for the device node returned by
of_parse_phandle().

Fixes: ea9c260514c1 ("gpu: ipu-v3: add driver for Prefetch Resolve Gasket")
Signed-off-by: Tobias Jordan <Tobias.Jordan@elektrobit.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-prg.c