Commit 5a25de6
ALSA: echoaudio: Fix potential Oops in snd_echo_resume()
Freeing chip on error may lead to an Oops at the next time
the system goes to resume. Fix this by removing all
snd_echo_free() calls on error.
Fixes: 47b5d02 ("ALSA: Echoaudio - Add suspend support #2")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20200813074632.17022-1-dinghao.liu@zju.edu.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent d96f27c commit 5a25de6
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2212 | 2212 | | |
2213 | 2213 | | |
2214 | 2214 | | |
2215 | | - | |
2216 | 2215 | | |
2217 | 2216 | | |
2218 | 2217 | | |
| |||
2239 | 2238 | | |
2240 | 2239 | | |
2241 | 2240 | | |
2242 | | - | |
2243 | 2241 | | |
2244 | 2242 | | |
2245 | 2243 | | |
| |||
0 commit comments