diff options
author | Wen Yang <[email protected]> | 2019-03-22 11:04:09 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-03-23 21:21:24 -0400 |
commit | 75eac7b5f68b0a0671e795ac636457ee27cc11d8 (patch) | |
tree | adbbd7e0c6f9e63d17a163957e5a9d0168a073d3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | be693df3cf9dd113ff1d2c0d8150199efdba37f6 (diff) |
net: ethernet: ti: fix possible object reference leak
The call to of_get_child_by_name 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/net/ethernet/ti/netcp_ethss.c:3661:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 3654, but without a corresponding object release within this function.
./drivers/net/ethernet/ti/netcp_ethss.c:3665:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 3654, but without a corresponding object release within this function.
Signed-off-by: Wen Yang <[email protected]>
Cc: Wingman Kwok <[email protected]>
Cc: Murali Karicheri <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions