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 <hulkci@huawei.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20201117012229.3395186-1-yangyingliang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
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)