diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2016-06-27 21:06:51 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-06-27 22:27:47 +0200 |
commit | 9c6795a9b3cbb56a9fbfaf43909c5c22999ba317 (patch) | |
tree | 73f2ed280bd43618cb48595ad763f7069fd28ed4 /sound/pci/hda/hda_intel.c | |
parent | ALSA: hda - fix read before array start (diff) | |
download | linux-9c6795a9b3cbb56a9fbfaf43909c5c22999ba317.tar.xz linux-9c6795a9b3cbb56a9fbfaf43909c5c22999ba317.zip |
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>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
0 files changed, 0 insertions, 0 deletions