Commit 306df54
ALSA: echoaudio: Fix potential Oops in snd_echo_resume()
[ Upstream commit 5a25de6 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 8bc48c3 commit 306df54
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2198 | 2198 | | |
2199 | 2199 | | |
2200 | 2200 | | |
2201 | | - | |
2202 | 2201 | | |
2203 | 2202 | | |
2204 | 2203 | | |
| |||
2225 | 2224 | | |
2226 | 2225 | | |
2227 | 2226 | | |
2228 | | - | |
2229 | 2227 | | |
2230 | 2228 | | |
2231 | 2229 | | |
| |||
0 commit comments