diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2010-08-28 00:25:33 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-08-28 05:57:54 -0400 |
commit | 3182c8a72b31414e043184a97b0d5d3c0d590168 (patch) | |
tree | d69d7f20eb2d74c03769c9d28492e8e2950dbeee /sound/oss/sound_timer.c | |
parent | 60f1deb595c08687a96157a6a3ce08ef34142362 (diff) |
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/sound_timer.c')
-rw-r--r-- | sound/oss/sound_timer.c | 2 |
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; | |||
26 | static volatile unsigned long usecs_per_tmr; /* Length of the current interval */ | 26 | static volatile unsigned long usecs_per_tmr; /* Length of the current interval */ |
27 | 27 | ||
28 | static struct sound_lowlev_timer *tmr; | 28 | static struct sound_lowlev_timer *tmr; |
29 | static spinlock_t lock; | 29 | static DEFINE_SPINLOCK(lock); |
30 | 30 | ||
31 | static unsigned long tmr2ticks(int tmr_value) | 31 | static unsigned long tmr2ticks(int tmr_value) |
32 | { | 32 | { |