diff options
author | Wen Yang <[email protected]> | 2019-04-04 00:04:09 +0800 |
---|---|---|
committer | CK Hu <[email protected]> | 2019-04-09 13:09:43 +0800 |
commit | 2ae2c3316fb77dcf64275d011596b60104c45426 (patch) | |
tree | c8f0e29041f88284ba1ceb703b829ab5a4d3e82c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2d85978341e6a32e7443d9f28639da254d53f400 (diff) |
drm/mediatek: fix possible object reference leak
The call to of_parse_phandle returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.
Detected by coccinelle with the following warnings:
drivers/gpu/drm/mediatek/mtk_hdmi.c:1521:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 1509, but without a corresponding object release within this function.
drivers/gpu/drm/mediatek/mtk_hdmi.c:1524:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 1509, but without a corresponding object release within this function.
Signed-off-by: Wen Yang <[email protected]>
Cc: CK Hu <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: CK Hu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions