aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorRandy Witt <[email protected]>2013-10-17 16:56:47 -0400
committerGreg Kroah-Hartman <[email protected]>2013-12-08 16:44:21 -0800
commit42b6a1baa3ec18de2eb15baa250da6203eeb2d39 (patch)
tree02c53dbbe7be345a2335e0b54c6cc05d01b0ff9e /include/linux/fpga/fpga-mgr.h
parentdc1ccc48159d63eca5089e507c82c7d22ef60839 (diff)
serial_core: Don't re-initialize a previously initialized spinlock.
The uart_set_options() code unconditionally initalizes the spinlock on the port. This can cause a deadlock in some situations. One instance that exposed the problem, was when writing to /sys/module/kgdboc/parameters/kgdboc to use ttyS0 when the console is already running on ttyS0. If the spinlock is re-initialized while the lock is held due to output to the console, there is a deadlock. Assume the spinlock is initialized if the port is a console. Signed-off-by: Randy Witt <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions