summaryrefslogtreecommitdiffstats
path: root/sound/usb/pcm.h
diff options
context:
space:
mode:
authorXiaoke Wang <xkernel.wang@foxmail.com>2022-03-14 11:36:45 +0100
committerMark Brown <broonie@kernel.org>2022-03-16 17:39:17 +0100
commitd39664cb758e9e329ac3ba05bd4f813f928f63c2 (patch)
tree305a148c9ada1e4be018f228ecaefe7167615ff4 /sound/usb/pcm.h
parentASoC: atmel: mchp-pdmc: Fix `-Wpointer-bool-conversion` warning (diff)
downloadlinux-d39664cb758e9e329ac3ba05bd4f813f928f63c2.tar.xz
linux-d39664cb758e9e329ac3ba05bd4f813f928f63c2.zip
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: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Xiaoke Wang <xkernel.wang@foxmail.com> Link: https://lore.kernel.org/r/tencent_EC21778DC383823CBC4069EA9F0B84943905@qq.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/usb/pcm.h')
0 files changed, 0 insertions, 0 deletions