serial: bfin_sport_uart: protect changes to uart_port
authorSonic Zhang <sonic.zhang@analog.com>
Tue, 9 Mar 2010 17:25:34 +0000 (12:25 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:34:27 +0000 (09:34 -0700)
commit9498dc95ca6fa6e5b044f39696ab317996fd2fe5
tree7cbc8e9d5899b3b8e20e5598b08cf901d1733887
parent1f7d1c85df5b63359e7f7e3fbd1509c1cdd6414f
serial: bfin_sport_uart: protect changes to uart_port

Common serial API says we need to grab the port lock before modifying
the port state to prevent inconsistent state between threads.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/bfin_sport_uart.c