* PATCH: fix a race in the plugin api for ac97
@ 2003-07-14 12:25 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2003-07-14 12:25 UTC (permalink / raw)
To: linux-kernel, marcelo
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre5/drivers/sound/ac97_codec.c linux.22-pre5-ac1/drivers/sound/ac97_codec.c
--- linux.22-pre5/drivers/sound/ac97_codec.c 2003-07-14 12:27:39.000000000 +0100
+++ linux.22-pre5-ac1/drivers/sound/ac97_codec.c 2003-07-07 16:20:20.000000000 +0100
@@ -740,7 +740,6 @@
memset(codec, 0, sizeof(*codec));
spin_lock_init(&codec->lock);
INIT_LIST_HEAD(&codec->list);
- list_add(&codec->list, &codecs);
return codec;
}
@@ -869,6 +868,7 @@
*/
down(&codec_sem);
+ list_add(&codec->list, &codecs);
list_for_each(l, &codec_drivers) {
d = list_entry(l, struct ac97_driver, list);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-14 12:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-14 12:25 PATCH: fix a race in the plugin api for ac97 Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).