commit | 9c6795a9b3cbb56a9fbfaf43909c5c22999ba317 | [log] [tgz] |
---|---|---|
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | Mon Jun 27 21:06:51 2016 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Mon Jun 27 22:27:47 2016 +0200 |
tree | 73f2ed280bd43618cb48595ad763f7069fd28ed4 | |
parent | 81e43960dce1c8e58e682fb3ec26c1d8f83a9afc [diff] |
ALSA: echoaudio: Fix memory allocation 'commpage_bak' is allocated with 'sizeof(struct echoaudio)' bytes. We then copy 'sizeof(struct comm_page)' bytes in it. On my system, smatch complains because one is 2960 and the other is 3072. This would result in memory corruption or a oops. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>