summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZheyu Ma <zheyuma97@gmail.com>2021-07-14 05:53:23 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-22 11:41:24 +0200
commit1677826110989bd51d8d01ca64ee4a86ebfd8bc3 (patch)
treefab4ba293067e981d5ec78c205cb5c5b2207fde2 /lib
parent15c8213699c3db0acdf19d2a87ef8600a89ccd32 (diff)
downloadlinux-stable-1677826110989bd51d8d01ca64ee4a86ebfd8bc3.tar.gz
linux-stable-1677826110989bd51d8d01ca64ee4a86ebfd8bc3.tar.bz2
linux-stable-1677826110989bd51d8d01ca64ee4a86ebfd8bc3.zip
tty: serial: jsm: hold port lock when reporting modem line changes
[ Upstream commit 240e126c28df084222f0b661321e8e3ecb0d232e ] uart_handle_dcd_change() requires a port lock to be held and will emit a warning when lockdep is enabled. Held corresponding lock to fix the following warnings. [ 132.528648] WARNING: CPU: 5 PID: 11600 at drivers/tty/serial/serial_core.c:3046 uart_handle_dcd_change+0xf4/0x120 [ 132.530482] Modules linked in: [ 132.531050] CPU: 5 PID: 11600 Comm: jsm Not tainted 5.14.0-rc1-00003-g7fef2edf7cc7-dirty #31 [ 132.535268] RIP: 0010:uart_handle_dcd_change+0xf4/0x120 [ 132.557100] Call Trace: [ 132.557562] ? __free_pages+0x83/0xb0 [ 132.558213] neo_parse_modem+0x156/0x220 [ 132.558897] neo_param+0x399/0x840 [ 132.559495] jsm_tty_open+0x12f/0x2d0 [ 132.560131] uart_startup.part.18+0x153/0x340 [ 132.560888] ? lock_is_held_type+0xe9/0x140 [ 132.561660] uart_port_activate+0x7f/0xe0 [ 132.562351] ? uart_startup.part.18+0x340/0x340 [ 132.563003] tty_port_open+0x8d/0xf0 [ 132.563523] ? uart_set_options+0x1e0/0x1e0 [ 132.564125] uart_open+0x24/0x40 [ 132.564604] tty_open+0x15c/0x630 Signed-off-by: Zheyu Ma <zheyuma97@gmail.com> Link: https://lore.kernel.org/r/1626242003-3809-1-git-send-email-zheyuma97@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions