diff options
author | John Ogness <john.ogness@linutronix.de> | 2022-05-07 00:33:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-14 17:54:00 +0300 |
commit | 66412d89a5d6185c91de741d5310416c2b6d8568 (patch) | |
tree | 5c4ea74fc3dfebacce94f1d80058a2bc42eac808 /lib/string_helpers.c | |
parent | 277faa442fe0c59f418ac53f47a78e1266addd65 (diff) | |
download | linux-66412d89a5d6185c91de741d5310416c2b6d8568.tar.xz |
serial: msm_serial: disable interrupts in __msm_console_write()
[ Upstream commit aabdbb1b7a5819e18c403334a31fb0cc2c06ad41 ]
__msm_console_write() assumes that interrupts are disabled, but
with threaded console printers it is possible that the write()
callback of the console is called with interrupts enabled.
Explicitly disable interrupts using local_irq_save() to preserve
the assumed context.
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Link: https://lore.kernel.org/r/20220506213324.470461-1-john.ogness@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions