Skip to contentSkip to conversation

tty: max3100: Fix oops while 'cat/proc/tty/driver/ttyMAX'

PATCH Jiri Slaby 1 participant 1 message Sep 14, 2018 1 message not in the archive TTY layer and serial drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jiri Slaby

author
#1 lore raw
Quoted 6 lines · On 09/13/2018, 08:32 AM, [email protected] wrote:

but 'get_mctrl' is already protected by  the upper layer by spin lock, so, will the races happen?

Quoted 7 lines

for example: in /drivers/tty/serial/serial_core.c

              spin_lock_irq(&uport->lock);

              result |= uport->ops->get_mctrl(uport);

              spin_unlock_irq(&uport->lock);

Right, but creation and destroy of the workqueue is not locked as far as I can see. Am I missing something?

thanks,.

Signature · 2 lines
js
suse labs