Skip to content
Commit a508e339 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Corey Minyard
Browse files

ipmi:ipmb: Fix refcount leak in ipmi_ipmb_probe



of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.
Add missing of_node_put() to avoid refcount leak.

Fixes: 00d93611 ("ipmi:ipmb: Add the ability to have a separate slave and master device")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Message-Id: <20220512044445.3102-1-linmq006@gmail.com>
Cc: stable@vger.kernel.org # v5.17+
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 5396ccbd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment