Skip to content
Commit c3a3d3c4 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Mark Brown
Browse files

ASoC: rockchip: Fix an error handling in 'rockchip_i2s_probe'



If this memory allocation fail, we must disable what has been enabled.
Do not return immediately but go thrue the error handling path instead.

Also use 'devm_kmemdup' instead of 'devm_kzalloc+memcpy' to simplify code.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ec2212c4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment