28a265a1ee
The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. This function only calls of_node_put() in the regular path. And it will cause refcount leak in error paths. Fix this by calling of_node_put() in error handling too. Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://lore.kernel.org/r/20220316014059.19292-1-linmq006@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org> |
||
---|---|---|
.. | ||
Makefile | ||
mt8183-afe-clk.c | ||
mt8183-afe-clk.h | ||
mt8183-afe-common.h | ||
mt8183-afe-pcm.c | ||
mt8183-da7219-max98357.c | ||
mt8183-dai-adda.c | ||
mt8183-dai-hostless.c | ||
mt8183-dai-i2s.c | ||
mt8183-dai-pcm.c | ||
mt8183-dai-tdm.c | ||
mt8183-interconnection.h | ||
mt8183-mt6358-ts3a227-max98357.c | ||
mt8183-reg.h |