linux-stable/sound/soc/mediatek/common
Trevor Wu 1dd0385226
ASoC: mediatek: common: handle NULL case in suspend/resume function
When memory allocation for afe->reg_back_up fails, reg_back_up can't
be used.
Keep the suspend/resume flow but skip register backup when
afe->reg_back_up is NULL, in case illegal memory access happens.

Fixes: 283b612429 ("ASoC: mediatek: implement mediatek common structure")
Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210910092613.30188-1-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-09-10 15:08:26 +01:00
..
Makefile ASoC: Add missing newline at end of file 2019-06-17 16:18:13 +01:00
mtk-afe-fe-dai.c ASoC: mediatek: common: handle NULL case in suspend/resume function 2021-09-10 15:08:26 +01:00
mtk-afe-fe-dai.h ASoC: mediatek: move .suspend/.resume to component 2020-01-21 17:03:54 +00:00
mtk-afe-platform-driver.c ASoC: mediatek: use asoc_substream_to_rtd() 2020-07-23 19:07:32 +01:00
mtk-afe-platform-driver.h ASoC: mediatek: Use managed buffer allocation 2019-12-12 15:41:13 +00:00
mtk-base-afe.h ASoC: mediatek: mt8195: update mediatek common driver 2021-08-24 19:13:51 +01:00
mtk-btcvsd.c ASoC: mediatek: mtk-btcvsd: Fix an error handling path in 'mtk_btcvsd_snd_probe()' 2021-06-08 13:36:46 +01:00