projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60f1deb
)
sound: oss: fix uninitialized spinlock
author
Akinobu Mita
<akinobu.mita@gmail.com>
Sat, 28 Aug 2010 04:25:33 +0000
(13:25 +0900)
committer
Takashi Iwai
<tiwai@suse.de>
Sat, 28 Aug 2010 09:57:54 +0000
(11:57 +0200)
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>
sound/oss/sound_timer.c
patch
|
blob
|
history
diff --git
a/sound/oss/sound_timer.c
b/sound/oss/sound_timer.c
index f0f0c19fbff7a75c4e5ad561d18ce9f970775e97..48cda6c4c257b34d191d3512ff52658de4329669 100644
(file)
--- 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)
{