diff options
| author | Wen Yang <[email protected]> | 2019-03-22 03:04:07 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-03-24 01:21:24 +0000 |
| commit | fa3a419d2f674b431d38748cb58fb7da17ee8949 (patch) | |
| tree | 7e755440f7102c7936bbca82691f7f830305a79e /net/tipc/node.c | |
| parent | net: phy: Re-parent menus for MDIO bus drivers correctly (diff) | |
| download | kernel-fa3a419d2f674b431d38748cb58fb7da17ee8949.tar.gz kernel-fa3a419d2f674b431d38748cb58fb7da17ee8949.zip | |
net: xilinx: 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/net/ethernet/xilinx/xilinx_axienet_main.c:1624:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 1569, but without a corresponding object release within this function.
Signed-off-by: Wen Yang <[email protected]>
Cc: Anirudha Sarangi <[email protected]>
Cc: John Linn <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
