linux/sound/pci/echoaudio
Julia Lawall a0fd4345f9 ALSA: echoaudio - Eliminate use after free
Use the call to snd_card_free in the error handling code at the end of the
function, as in the other error cases.

A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression E,E2;
@@

snd_card_free(E)
...
(
  E = E2
|
* E
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-04-04 12:21:42 +02:00
..
darla20_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
darla20.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
darla24_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
darla24.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
echo3g_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
echo3g.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
echoaudio_3g.c ALSA: Echoaudio - Add firmware cache 2010-02-15 10:36:51 +01:00
echoaudio_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:40:15 +01:00
echoaudio_dsp.h
echoaudio_gml.c
echoaudio.c ALSA: echoaudio - Eliminate use after free 2010-04-04 12:21:42 +02:00
echoaudio.h ALSA: Echoaudio - Add suspend support 2010-02-15 10:40:15 +01:00
gina20_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
gina20.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
gina24_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
gina24.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
indigo_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
indigo_express_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
indigo.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
indigodj_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
indigodj.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
indigodjx_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
indigodjx.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
indigoio_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
indigoio.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
indigoiox_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
indigoiox.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
layla20_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
layla20.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
layla24_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
layla24.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
Makefile
mia_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
mia.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
midi.c
mona_dsp.c ALSA: Echoaudio - Add suspend support 2010-02-15 10:39:22 +01:00
mona.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00