Skip to content
Commit 74105533 authored by Phil Elwell's avatar Phil Elwell Committed by popcornmix
Browse files

serial: Take care starting a hung-up tty's port



tty_port_hangup sets a port's tty field to NULL (holding the port lock),
but uart_tx_stopped, called from __uart_start (with the port lock),
uses the tty field without checking for NULL.

Change uart_tx_stopped to treat a NULL tty field as another stopped
indication.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
parent 1f133059
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment