serial-uartlite: fix missing locking in isr
authorRich Felker <dalias@libc.org>
Fri, 8 Jan 2016 20:33:50 +0000 (15:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:56:43 +0000 (22:56 -0800)
commit9e370d2c9f59a63dda0ced3ecd1b55498d97c449
tree12c0f8218b6e7f8c29648cc9ab2552be3e23a7bb
parent7cdcc29e4919dc31f494eaf05e46005c28efe832
serial-uartlite: fix missing locking in isr

The uartlite driver suffers from missing/duplicate/corrupted character
data when the interrupt handler runs concurrently with access to the
device from another cpu. Take the port spinlock to exclude concurrent
access.

Signed-off-by: Rich Felker <dalias@libc.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/uartlite.c