linux/sound/pci/echoaudio
Christophe JAILLET db92ce5d03 ALSA: echoaudio: Fix memory allocation
commit 9c6795a9b3 upstream.

'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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2016-08-22 22:38:22 +01:00
..
darla20.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
darla20_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
darla24.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
darla24_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
echo3g.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
echo3g_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
echoaudio.c ALSA: echoaudio: Fix memory allocation 2016-08-22 22:38:22 +01:00
echoaudio.h ALSA: pci: remove __dev* attributes 2012-12-07 07:20:55 +01:00
echoaudio_3g.c ALSA: Echoaudio - Add firmware cache #1 2010-02-15 10:36:51 +01:00
echoaudio_dsp.c ALSA: echoaudio: Use standard printk helpers 2014-02-26 16:45:26 +01:00
echoaudio_dsp.h ALSA: Echoaudio: add support for Indigo express cards 2009-03-19 08:17:57 +01:00
echoaudio_gml.c ALSA: Kill snd_assert() in sound/pci/* 2008-08-13 11:46:38 +02:00
gina20.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
gina20_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
gina24.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
gina24_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
indigo.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
indigo_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
indigo_express_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
indigodj.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
indigodj_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
indigodjx.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
indigodjx_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
indigoio.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
indigoio_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
indigoiox.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
indigoiox_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
layla20.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
layla20_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
layla24.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
layla24_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
Makefile ALSA: Echoaudio: add support for Indigo express cards 2009-03-19 08:17:57 +01:00
mia.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
mia_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00
midi.c ALSA: echoaudio: Use standard printk helpers 2014-02-26 16:45:26 +01:00
mona.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
mona_dsp.c ALSA: Echoaudio - Add suspend support #1 2010-02-15 10:39:22 +01:00