[PATCH 0/3] fix leaked of_node references in drivers/media

From: Wen Yang
Date: Thu Jun 27 2019 - 23:20:00 EST


The call to of_get_cpu_node/of_find_compatible_node/of_parse_phandle...
returns a node pointer with refcount incremented thus it must be
explicitly decremented after the last usage.

We developed a coccinelle SmPL to detect drivers/media/ code and
found some issues.
This patch series fixes those issues.

Wen Yang (3):
media: xilinx: fix leaked of_node references
media: exynos4-is: fix leaked of_node references
media: ti-vpe: fix leaked of_node references

drivers/media/platform/exynos4-is/fimc-is.c | 1 +
drivers/media/platform/exynos4-is/media-dev.c | 2 ++
drivers/media/platform/ti-vpe/cal.c | 1 +
drivers/media/platform/xilinx/xilinx-tpg.c | 18 +++++++++++++-----
drivers/media/platform/xilinx/xilinx-vipp.c | 8 +++++---
5 files changed, 22 insertions(+), 8 deletions(-)

Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
Cc: Hans Verkuil <hverkuil-cisco@xxxxxxxxx>
Cc: Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx>
Cc: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
Cc: Stanimir Varbanov <stanimir.varbanov@xxxxxxxxxx>
Cc: linux-media@xxxxxxxxxxxxxxx

--
2.9.5