linux/sound
Julia Lawall df1deb6753 [ALSA] sound/core/memalloc.c: Add missing pci_dev_put
There should be a pci_dev_put when breaking out of a loop that iterates
over calls to pci_get_device and similar functions.
In this case, the return under the initial if needs a pci_dev_put in the
same way that the return under the subsequent for loop has a pci_dev_put.
This was fixed using the following semantic patch.
// <smpl>
@@
type T;
identifier d;
expression e;
@@
T *d;
...
while ((d = \(pci_get_device\|pci_get_device_reverse\|pci_get_subsys\|pci_get_class\)(..., d)) != NULL)
  {... when != pci_dev_put(d)
       when != e = d
(
    return d;
|
+  pci_dev_put(d);
?  return ...;
)
...}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-01-31 17:29:30 +01:00
..
aoa [ALSA] aoa - fix compile warning 2008-01-31 17:29:29 +01:00
arm [ARM] 4690/1: PXA: fix CKEN corruption in PXA27x AC97 cold reset code 2007-12-08 14:36:06 +00:00
core [ALSA] sound/core/memalloc.c: Add missing pci_dev_put 2008-01-31 17:29:30 +01:00
drivers [ALSA] drivers - Add missing snd_card_set_dev() 2008-01-31 17:29:29 +01:00
i2c [ALSA] Check value range in ctl callbacks 2008-01-31 17:29:25 +01:00
isa [ALSA] sound/isa: Add missing 'space' 2008-01-31 17:29:29 +01:00
mips Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
oss [ARM] Remove pointless casts from void pointers, 2008-01-26 14:50:00 +00:00
parisc [PARISC] fix section mismatch warnings in harmony sound driver 2007-02-17 01:19:12 -05:00
pci [ALSA] ice1712 - Fix word clock status control on Delta 1010LT 2008-01-31 17:29:30 +01:00
pcmcia [ALSA] vxpocket - Check value range in ctl callbacks 2008-01-31 17:29:25 +01:00
ppc [ALSA] powermac - Fix typos 2008-01-31 17:29:26 +01:00
sh [ALSA] Check value range in ctl callbacks 2008-01-31 17:29:25 +01:00
soc [ALSA] soc/wm8731: Fix stereo mixer controls 2008-01-31 17:29:29 +01:00
sparc [ALSA] dbri - Fix broken change for value range checks 2008-01-31 17:29:26 +01:00
spi [ALSA] at73c213 - Use common callback 2008-01-31 17:29:25 +01:00
synth Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
usb [ALSA] usb-caiaq - add support for Kore controller 2 2008-01-31 17:29:29 +01:00
Kconfig [ALSA] Add SPI devices to ALSA Kconfig and Makefile 2007-10-16 15:57:47 +02:00
Makefile [ALSA] Add SPI devices to ALSA Kconfig and Makefile 2007-10-16 15:57:47 +02:00
ac97_bus.c [ALSA] ac97_bus power management 2007-02-09 09:03:54 +01:00
last.c [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
sound_core.c [PATCH] mark struct file_operations const 9 2007-02-12 09:48:46 -08:00
sound_firmware.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00