diff options
| author | Wen Yang <[email protected]> | 2019-03-22 03:04:08 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-03-24 01:21:24 +0000 |
| commit | be693df3cf9dd113ff1d2c0d8150199efdba37f6 (patch) | |
| tree | de661513d01c85e448bcf06714b9778e60903eac /net/tipc/node.c | |
| parent | net: xilinx: fix possible object reference leak (diff) | |
| download | kernel-be693df3cf9dd113ff1d2c0d8150199efdba37f6.tar.gz kernel-be693df3cf9dd113ff1d2c0d8150199efdba37f6.zip | |
net: ibm: fix possible object reference leak
The call to ehea_get_eth_dn 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/ibm/ehea/ehea_main.c:3163:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 3154, but without a corresponding object release within this function.
Signed-off-by: Wen Yang <[email protected]>
Cc: Douglas Miller <[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 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
