lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1557126318-21487-1-git-send-email-wen.yang99@zte.com.cn>
Date:   Mon, 6 May 2019 15:05:14 +0800
From:   Wen Yang <wen.yang99@....com.cn>
To:     linux-kernel@...r.kernel.org
Cc:     wang.yi59@....com.cn, Wen Yang <wen.yang99@....com.cn>,
        Mauro Carvalho Chehab <mchehab@...nel.org>,
        Hans Verkuil <hverkuil-cisco@...all.nl>,
        Laurent Pinchart <laurent.pinchart+renesas@...asonboard.com>,
        Kieran Bingham <kieran.bingham+renesas@...asonboard.com>,
        Philipp Zabel <p.zabel@...gutronix.de>,
        Stanimir Varbanov <stanimir.varbanov@...aro.org>,
        linux-media@...r.kernel.org
Subject: [PATCH 0/4] fix leaked of_node references in drivers/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 (4):
  media: venus: firmware: fix leaked of_node references
  media: mtk-vpu: fix leaked of_node references
  media: mtk-vcodec: fix leaked of_node references
  media: xilinx: fix leaked of_node references

 drivers/media/platform/exynos4-is/fimc-is.c           | 1 +
 drivers/media/platform/exynos4-is/media-dev.c         | 1 +
 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c | 2 +-
 drivers/media/platform/mtk-vpu/mtk_vpu.c              | 2 +-
 drivers/media/platform/qcom/venus/firmware.c          | 6 ++++--
 drivers/media/platform/xilinx/xilinx-vipp.c           | 8 +++++---
 6 files changed, 13 insertions(+), 7 deletions(-)

Cc: Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: Hans Verkuil <hverkuil-cisco@...all.nl>
Cc: Laurent Pinchart <laurent.pinchart+renesas@...asonboard.com>
Cc: Kieran Bingham <kieran.bingham+renesas@...asonboard.com>
Cc: Philipp Zabel <p.zabel@...gutronix.de>
Cc: Stanimir Varbanov <stanimir.varbanov@...aro.org>
Cc: linux-media@...r.kernel.org
Cc: linux-kernel@...r.kernel.org

-- 
2.9.5

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ