Signed-off-by: William Hubbs <[email protected]>
---
 drivers/staging/speakup/devsynth.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/speakup/devsynth.c 
b/drivers/staging/speakup/devsynth.c
index 940769e..7d32748 100644
--- a/drivers/staging/speakup/devsynth.c
+++ b/drivers/staging/speakup/devsynth.c
@@ -30,9 +30,9 @@ static ssize_t speakup_file_write(struct file *fp, const char 
*buffer,
                        return -EFAULT;
                count -= bytes;
                ptr += bytes;
-               spk_lock(flags);
+               spin_lock_irqsave(&speakup_info.spinlock, flags);
                synth_write(buf, bytes);
-               spk_unlock(flags);
+               spin_unlock_irqrestore(&speakup_info.spinlock, flags);
        }
        return (ssize_t) nbytes;
 }
-- 
1.8.1.5

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to