summaryrefslogtreecommitdiffstats
path: root/sound/oss
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2010-08-28 06:25:33 +0200
committerTakashi Iwai <tiwai@suse.de>2010-08-28 11:57:54 +0200
commit3182c8a72b31414e043184a97b0d5d3c0d590168 (patch)
treed69d7f20eb2d74c03769c9d28492e8e2950dbeee /sound/oss
parentALSA: asihpi - Return hw error directly from oustream_write. (diff)
downloadlinux-3182c8a72b31414e043184a97b0d5d3c0d590168.tar.xz
linux-3182c8a72b31414e043184a97b0d5d3c0d590168.zip
sound: oss: fix uninitialized spinlock
The spinlock lock in sound_timer.c is used without initialization. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/oss')
-rw-r--r--sound/oss/sound_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/oss/sound_timer.c b/sound/oss/sound_timer.c
index f0f0c19fbff7..48cda6c4c257 100644
--- a/sound/oss/sound_timer.c
+++ b/sound/oss/sound_timer.c
@@ -26,7 +26,7 @@ static unsigned long prev_event_time;
static volatile unsigned long usecs_per_tmr; /* Length of the current interval */
static struct sound_lowlev_timer *tmr;
-static spinlock_t lock;
+static DEFINE_SPINLOCK(lock);
static unsigned long tmr2ticks(int tmr_value)
{