ALSA: pxa2xx: Add missing of_node_put() in pxa_ssp_probe
Subsystems (3)
PATCH 1/1 ALSA: pxa2xx: Add missing of_node_put() in pxa_ssp_probe
This node pointer is returned by of_parse_phandle() with refcount incremented in this function. Calling of_node_put() to avoid the refcount leak.
Fixes 2023c90c3a2c ("ASoC: pxa: pxa-ssp: add DT bindings")
Signed-off-by Miaoqian Lin <[email protected]>
--- sound/soc/pxa/pxa-ssp.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/pxa/pxa-ssp.c +1 -0
@@ -770,6 +770,7 @@ static int pxa_ssp_probe(struct snd_soc_dai *dai) } priv->ssp =pxa_ssp_request_of (ssp_handle,"SoC audio" ); +of_node_put (ssp_handle);if (priv->ssp ==NULL ) { ret = -ENODEV ; goto err_priv;
Signature · 1 line
2.17.1