aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorTony Lindgren <[email protected]>2023-04-19 14:54:22 +0300
committerGreg Kroah-Hartman <[email protected]>2023-04-20 13:43:44 +0200
commit63f4c34561718a349d321105adab028cbf212d57 (patch)
tree6b53a170f76811602e726af7d5aa695dcb9abf74 /scripts/bpf_doc.py
parent04e82793f068d2f0ffe62fcea03d007a8cdc16a7 (diff)
serial: core: Disable uart_start() on uart_remove_one_port()
While rebinding a uart device in a loop I noticed we may see a tx related race on uart_remove_one_port(): uart_write from n_tty_write n_tty_write from file_tty_write.constprop.0 file_tty_write.constprop.0 from vfs_write vfs_write from ksys_write ksys_write from ret_fast_syscall Let's disallow tx on port->UPF_DEAD. This flag gets set before we start tearing down the port in uart_remove_one_port(). Signed-off-by: Tony Lindgren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions