speakup: Add spinlock in synth_direct_store
authorPavel Andrianov <andrianov@ispras.ru>
Mon, 5 Sep 2016 13:17:47 +0000 (16:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 11:13:25 +0000 (13:13 +0200)
commit777953182ea9a750e744bd0a50fb8893cd061397
treefac1d69668975b2465d7e9e627811a973a925462
parentda25a8ec6b2d66d9510358173b8da4c80d686c2b
speakup: Add spinlock in synth_direct_store

All operations with synth buffer should be protected,
as there are global pointers, which should be modified atomically.

Found by Linux Driver Verification project (linuxtesting.org)

Signed-off-by: Pavel Andrianov <andrianov@ispras.ru>
Acked-by: Vaishali Thakkar <vaishali.thakkar@oracle.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/kobjects.c