summaryrefslogtreecommitdiffstats
path: root/Documentation/sound/alsa/ALSA-Configuration.txt
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2007-11-28 11:58:56 +0100
committerJaroslav Kysela <perex@perex.cz>2008-01-31 17:29:30 +0100
commitdf1deb67532ea26f1a033a5f48bf34b30bec8e1d (patch)
treecebdf47a832ee63a9deeba4751d556219b627fd3 /Documentation/sound/alsa/ALSA-Configuration.txt
parent[ALSA] ice1712 - Fix word clock status control on Delta 1010LT (diff)
downloadlinux-df1deb67532ea26f1a033a5f48bf34b30bec8e1d.tar.xz
linux-df1deb67532ea26f1a033a5f48bf34b30bec8e1d.zip
[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>
Diffstat (limited to 'Documentation/sound/alsa/ALSA-Configuration.txt')
0 files changed, 0 insertions, 0 deletions