speakup: fix uninitialized flush_lock
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 17 Nov 2020 01:22:29 +0000 (09:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:44 +0000 (11:53 +0100)
commit837935e21f7f35bf19095560273c3d504bd0d723
tree96c8c3e30c1bfbee94f86e27b27e0aaa68b0ec42
parent12dba6742b1360e529cd165656a565935159859c
speakup: fix uninitialized flush_lock

[ Upstream commit d1b928ee1cfa965a3327bbaa59bfa005d97fa0fe ]

The flush_lock is uninitialized, use DEFINE_SPINLOCK
to define and initialize flush_lock.

Fixes: c6e3fd22cd53 ("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>
drivers/accessibility/speakup/speakup_dectlk.c