Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3182c8a7 authored by Akinobu Mita's avatar Akinobu Mita Committed by Takashi Iwai
Browse files

sound: oss: fix uninitialized spinlock



The spinlock lock in sound_timer.c is used without initialization.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 60f1deb5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
{