Skip to content

Commit 02fbbc1

Browse files
Yang Yingliangksacilotto
authored andcommitted
speakup: fix uninitialized flush_lock
BugLink: https://bugs.launchpad.net/bugs/1910822 [ Upstream commit d1b928e ] 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]> Signed-off-by: Kamal Mostafa <[email protected]> Signed-off-by: Kelsey Skunberg <[email protected]>
1 parent e90fbbc commit 02fbbc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/speakup/speakup_dectlk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static unsigned char get_index(struct spk_synth *synth);
3737
static int in_escape;
3838
static int is_flushing;
3939

40-
static spinlock_t flush_lock;
40+
static DEFINE_SPINLOCK(flush_lock);
4141
static DECLARE_WAIT_QUEUE_HEAD(flush);
4242

4343
static struct var_t vars[] = {

0 commit comments

Comments
 (0)