From: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
To: Jiri Slaby <jirislaby@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org
Cc: stable@vger.kernel.org
Subject: Re: [PATCH] serial: Fix not set tty->port race condition
Date: Fri, 23 Jan 2026 08:13:30 +0100 [thread overview]
Message-ID: <b02ce9bb-721c-46cd-9f2d-79d38be0ab4f@oss.qualcomm.com> (raw)
In-Reply-To: <e0ee73fe-2b9e-4976-9648-35a6822b8ad1@kernel.org>
On 23/01/2026 06:55, Jiri Slaby wrote:
> On 22. 01. 26, 18:00, Krzysztof Kozlowski wrote:
>>
>> diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
>> index 0534b2eb1682..116f33f0643f 100644
>> --- a/drivers/tty/serial/serial_core.c
>> +++ b/drivers/tty/serial/serial_core.c
>> @@ -3077,6 +3077,7 @@ static int serial_core_add_one_port(struct uart_driver *drv, struct uart_port *u
>> if (uport->cons && uport->dev)
>> of_console_check(uport->dev->of_node, uport->cons->name, uport->line);
>>
>> + tty_port_link_device(port, drv->tty_driver, uport->line);
>
> Bah, so add a comment or I (or somebody) remove it again eventually :(.
>
Good point.
Best regards,
Krzysztof
prev parent reply other threads:[~2026-01-23 7:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 17:00 [PATCH] serial: Fix not set tty->port race condition Krzysztof Kozlowski
2026-01-22 17:11 ` Krzysztof Kozlowski
2026-01-23 5:59 ` Jiri Slaby
2026-01-23 5:55 ` Jiri Slaby
2026-01-23 7:13 ` Krzysztof Kozlowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b02ce9bb-721c-46cd-9f2d-79d38be0ab4f@oss.qualcomm.com \
--to=krzysztof.kozlowski@oss.qualcomm.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox