ath11k: add missing of_node_put() to avoid leak
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 10 Jan 2022 14:24:13 +0000 (16:24 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 11 Jan 2022 14:27:37 +0000 (16:27 +0200)
commit3d38faef0de1756994b3d95e47b2302842f729e2
tree2b997bcbac24e9f256d29c566b83f22a378a9b57
parent8aaaf2f3af2ae212428f4db1af34214225f5cec3
ath11k: add missing of_node_put() to avoid leak

The node pointer is returned by of_find_node_by_type()
or of_parse_phandle() with refcount incremented. Calling
of_node_put() to aovid the refcount leak.

Fixes: 6ac04bdc5edb ("ath11k: Use reserved host DDR addresses from DT for PCI devices")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20211221114003.335557-1-yangyingliang@huawei.com
drivers/net/wireless/ath/ath11k/mhi.c
drivers/net/wireless/ath/ath11k/qmi.c