Re: [PATCH v4] uart: fix race between uart_put_char() and uart_shutdown()

From: Greg Kroah-Hartman
Date: Thu Jul 12 2018 - 11:04:43 EST


On Wed, Jul 11, 2018 at 10:07:44AM -0600, Tycho Andersen wrote:
> + if (uport)
> + spin_lock_irqsave(&uport->lock, flags);

That's the same thing as just calling uart_port_lock(), why aren't you
doing that?

thanks,

greg k-h