gpu: ipu-v3: pre: fix device node leak in ipu_pre_lookup_by_phandle
authorTobias Jordan <Tobias.Jordan@elektrobit.com>
Thu, 15 Feb 2018 14:34:55 +0000 (15:34 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 19 Feb 2018 14:12:59 +0000 (15:12 +0100)
commitc795f3052b60b01e80485fad98c53e5e67d093c9
tree7d721a032136282f6dd088d2081c84e5b5630099
parent6d36b7fec60e6f74a15ce4781d30b2aecce85dfc
gpu: ipu-v3: pre: fix device node leak in ipu_pre_lookup_by_phandle

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

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