Skip to content
Commit e2897b82 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

net: netcp: add missing of_node_put() in netcp_probe()



This node pointer is returned by of_get_child_by_name() with refcount
incremented in this function. of_node_put() on it before exitting this
function.

This is detected by Coccinelle semantic patch.

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f850b4a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment