Zheyu Ma
240e126c28
tty: serial: jsm: hold port lock when reporting modem line changes
...
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>
2021-07-21 12:36:48 +02:00
..
2021-07-21 12:32:12 +02:00
2021-06-15 14:03:27 +02:00
2021-07-21 12:36:48 +02:00
2020-10-28 13:39:14 +01:00
2021-04-22 12:09:24 +02:00
2021-04-22 12:09:24 +02:00
2021-04-22 12:09:24 +02:00
2021-05-20 16:24:05 +02:00
2021-04-22 12:09:25 +02:00
2021-04-22 12:09:25 +02:00
2021-05-13 16:57:16 +02:00
2021-05-13 18:29:11 +02:00
2020-03-07 09:52:01 +01:00
2021-04-22 12:09:25 +02:00
2019-12-18 15:04:46 +01:00
2021-05-13 18:29:11 +02:00
2020-12-04 15:49:48 +01:00
2020-11-06 17:12:30 +01:00
2021-05-13 16:08:26 +02:00
2021-05-13 18:29:11 +02:00
2020-03-07 09:52:01 +01:00
2020-07-29 17:11:02 +02:00
2021-06-04 15:11:16 +02:00
2021-05-13 18:29:12 +02:00
2021-06-24 14:46:32 +02:00
2021-05-20 16:22:09 +02:00
2020-07-20 09:39:11 +02:00
2020-12-28 16:10:50 +01:00
2021-05-20 16:35:01 +02:00
2021-04-22 12:09:25 +02:00
2021-06-24 14:46:32 +02:00
2021-05-31 09:44:28 +02:00
2021-01-07 16:17:32 +01:00
2021-04-22 12:09:25 +02:00
2020-08-18 13:51:18 +02:00
2021-05-20 16:11:20 +02:00
2019-12-18 15:04:51 +01:00
2021-04-22 12:09:25 +02:00
2021-04-22 12:09:25 +02:00
2021-05-13 18:29:12 +02:00
2021-06-25 13:53:51 +02:00
2021-06-15 14:03:27 +02:00
2021-05-20 16:24:05 +02:00
2021-04-22 12:09:25 +02:00
2021-03-23 10:31:09 +01:00
2020-03-12 10:00:22 +01:00
2020-03-07 09:52:01 +01:00
2021-05-13 18:29:12 +02:00
2020-11-13 15:28:27 +01:00
2019-12-18 15:04:57 +01:00
2021-06-24 14:51:28 +02:00
2021-04-22 12:09:26 +02:00
2021-05-21 20:34:02 +02:00
2021-04-22 12:09:26 +02:00
2021-05-13 16:10:53 +02:00
2021-05-13 18:29:12 +02:00
2021-05-20 16:30:40 +02:00
2019-12-18 15:05:00 +01:00
2021-07-21 12:35:01 +02:00
2020-11-06 17:12:05 +01:00
2020-03-07 09:52:01 +01:00
2021-05-13 18:29:12 +02:00
2021-05-13 17:07:43 +02:00
2021-06-15 14:03:27 +02:00
2021-06-04 15:12:40 +02:00
2021-04-22 12:09:26 +02:00
2020-03-18 12:20:04 +01:00
2021-05-20 17:06:17 +02:00
2021-06-15 14:03:27 +02:00
2021-04-22 12:11:25 +02:00
2020-07-21 18:21:49 +02:00
2021-05-13 18:29:12 +02:00
2021-05-13 18:29:12 +02:00
2021-05-13 18:29:12 +02:00
2021-06-15 14:02:06 +02:00
2021-04-22 12:09:26 +02:00
2020-03-07 09:52:01 +01:00
2021-06-04 15:11:45 +02:00
2021-05-13 16:14:45 +02:00
2021-05-13 18:29:12 +02:00
2021-04-22 12:09:26 +02:00
2021-06-24 14:51:45 +02:00
2020-01-29 10:13:27 -08:00