Skip to content
Snippets Groups Projects
Commit 4efbad9f authored by Yang Yingliang's avatar Yang Yingliang Committed by Madhulika Dolke
Browse files

UPSTREAM: ASoC: SOF: mediatek: Add missing of_node_put() in platform_parse_resource()


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

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20211125071608.3056715-1-yangyingliang@huawei.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
(cherry picked from commit fc6c62cf)

BUG=b:218766331
TEST=Test sound cards are listed and audio playback works.

Signed-off-by: default avatarTerry Cheong <htcheong@chromium.org>
Signed-off-by: default avatarMadhulika Dolke <madhulika.dolke@intel.com>
(cherry picked from commit fc6c62cf)
Change-Id: Ib68a303a9293299f14d09c36bccd4d06de082e0a
parent aa40a018
No related branches found
No related tags found
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