]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 16 Nov 2022 03:07:50 +0000 (11:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:06 +0000 (11:41 +0100)
commitf90ad857ddef77f0d5eee08e6329cd50c102adb3
treea53486ab6da6d0997cae154b13a674a7f5d80fe9
parent8a81ceb807733f760411361bbb01761051a9f460
ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd

[ Upstream commit d067b3378a78c9c3048ac535e31c171b6f5b5846 ]

As the mtk_btcvsd_snd_write and mtk_btcvsd_snd_read may return error,
it should be better to catch the exception.

Fixes: 0080c6d21193 ("ASoC: mediatek: add btcvsd driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20221116030750.40500-1-jiasheng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/mediatek/common/mtk-btcvsd.c