Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit fb8a0ef

Browse files
Yang Yinglianggregkh
Yang Yingliang
authored andcommitted
speakup: fix uninitialized flush_lock
[ Upstream commit d1b928ee1cfa965a3327bbaa59bfa005d97fa0fe ] The flush_lock is uninitialized, use DEFINE_SPINLOCK to define and initialize flush_lock. Fixes: c6e3fd2 ("Staging: add speakup to the staging directory") Reported-by: Hulk Robot <[email protected]> Reviewed-by: Samuel Thibault <[email protected]> Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent a072896 commit fb8a0ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/speakup/speakup_dectlk.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static unsigned char get_index(void);
4747
static int in_escape;
4848
static int is_flushing;
4949

50-
static spinlock_t flush_lock;
50+
static DEFINE_SPINLOCK(flush_lock);
5151
static DECLARE_WAIT_QUEUE_HEAD(flush);
5252

5353
static struct var_t vars[] = {

0 commit comments

Comments
 (0)