linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] fix leaked of_node references in drivers/media
@ 2019-06-28  3:01 Wen Yang
  2019-06-28  3:01 ` [PATCH 1/3] media: xilinx: fix leaked of_node references Wen Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Wen Yang @ 2019-06-28  3:01 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, Wen Yang, Mauro Carvalho Chehab, Hans Verkuil,
	Laurent Pinchart, Philipp Zabel, Stanimir Varbanov, linux-media

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@kernel.org>
Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Cc: linux-media@vger.kernel.org

-- 
2.9.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-28 12:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-28  3:01 [PATCH 0/3] fix leaked of_node references in drivers/media Wen Yang
2019-06-28  3:01 ` [PATCH 1/3] media: xilinx: fix leaked of_node references Wen Yang
2019-06-28 12:45   ` Markus Elfring
2019-06-28  3:01 ` [PATCH 2/3] media: exynos4-is: " Wen Yang
2019-06-28  3:01 ` [PATCH 3/3] media: ti-vpe: " Wen Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).