[PATCH v2] ASoC: samsung: Fix error handling in aries_audio_probe

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Sun Jun 5 16:48:07 CEST 2022


On 03/06/2022 15:06, Miaoqian Lin wrote:
> of_get_child_by_name() returns a node pointer with refcount
> incremented, we should use of_node_put() on it when not need anymore.
> This function is missing of_node_put(cpu) in the error path.
> Fix this by goto out label. of_node_put() will check NULL pointer.
> 
> Fixes: 7a3a7671fa6c ("ASoC: samsung: Add driver for Aries boards")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>


Best regards,
Krzysztof


More information about the Alsa-devel mailing list