Skip to content
Unverified Commit d39664cb authored by Xiaoke Wang's avatar Xiaoke Wang Committed by Mark Brown
Browse files

ASoC: samsung: i2s: check the return value of kstrdup()



kstrdup() is a memory allocation function which can return NULL when
some internal memory errors happen. It is better to check the return
value of it to catch the error in time.

Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: default avatarXiaoke Wang <xkernel.wang@foxmail.com>
Link: https://lore.kernel.org/r/tencent_EC21778DC383823CBC4069EA9F0B84943905@qq.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a8ae15ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment