[alsa-devel] [PATCH 1/2] ASoC: samsung: odroid: fix an use-after-free issue for codec

Krzysztof Kozlowski krzk at kernel.org
Tue Jul 16 11:06:13 CEST 2019


On Sat, 13 Jul 2019 at 05:48, Wen Yang <wen.yang99 at zte.com.cn> wrote:
>
> The codec variable is still being used after the of_node_put() call,
> which may result in use-after-free.
>
> Fixes: bc3cf17b575a ("ASoC: samsung: odroid: Add support for secondary CPU DAI")
> Signed-off-by: Wen Yang <wen.yang99 at zte.com.cn>
> Cc: Krzysztof Kozlowski <krzk at kernel.org>
> Cc: Sangbeom Kim <sbkim73 at samsung.com>
> Cc: Sylwester Nawrocki <s.nawrocki at samsung.com>
> Cc: Liam Girdwood <lgirdwood at gmail.com>
> Cc: Mark Brown <broonie at kernel.org>
> Cc: Jaroslav Kysela <perex at perex.cz>
> Cc: Takashi Iwai <tiwai at suse.com>
> Cc: alsa-devel at alsa-project.org
> Cc: linux-kernel at vger.kernel.org
> ---
>  sound/soc/samsung/odroid.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Reviewed-by: Krzysztof Kozlowski <krzk at kernel.org>

Best regards,
Krzysztof


More information about the Alsa-devel mailing list