]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_dw: Take port lock while accessing LSR
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 28 Jun 2022 09:01:28 +0000 (12:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Jun 2022 15:09:59 +0000 (17:09 +0200)
commitbbbc9d0f5f8a50186111876492803ed4e72af350
tree74612e3234d18417bbde3da04667168c52810204
parent608941a4a22c8eb92b8a657a3436e812731b1953
serial: 8250_dw: Take port lock while accessing LSR

Accessing LSR requires port lock because it mutates lsr_saved_flags
in serial_lsr_in().

Fixes: f6ca395d7547 ("serial: 8250_dw: Use serial_lsr_in() in dw8250_handle_irq()")
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/c5879db7-bee9-93f-526e-872a292442@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c