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:Hulk Robot <hulkci@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20211125071608.3056715-1-yangyingliang@huawei.com Signed-off-by:
Mark 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:
Terry Cheong <htcheong@chromium.org> Signed-off-by:
Madhulika Dolke <madhulika.dolke@intel.com> (cherry picked from commit fc6c62cf) Change-Id: Ib68a303a9293299f14d09c36bccd4d06de082e0a
Loading
Please register or sign in to comment