Skip to content

Commit

Permalink
sound: oss: fix uninitialized spinlock
Browse files Browse the repository at this point in the history
The spinlock lock in sound_timer.c is used without initialization.

Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
mita authored and tiwai committed Aug 28, 2010
1 parent 60f1deb commit 3182c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/oss/sound_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 3182c8a

Please sign in to comment.