diff options
author | Trevor Wu <[email protected]> | 2021-09-10 17:26:13 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-09-10 15:08:26 +0100 |
commit | 1dd038522615b70f5f8945c5631e9e2fa5bd58b1 (patch) | |
tree | be4c26c17897aea0296efa5a46b7eea6f1b0ddf8 /scripts/gdb/linux/utils.py | |
parent | 26be23af1866eead5a29f8501f9d774ac277d0bd (diff) |
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: 283b612429a2 ("ASoC: mediatek: implement mediatek common structure")
Signed-off-by: Trevor Wu <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions