Messages in this thread | | | Date | Sun, 5 Jun 2022 16:48:07 +0200 | Subject | Re: [PATCH v2] ASoC: samsung: Fix error handling in aries_audio_probe | From | Krzysztof Kozlowski <> |
| |
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@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards, Krzysztof
| |