Re: [PATCH v2 1/4] serial: core: do fallible allocations before the console can be registered
From: Karl Mehltretter
Date: Fri Jul 31 2026 - 08:40:12 EST
On Thu, Jul 30, 2026 at 04:28:10PM +0100, Greg Kroah-Hartman wrote:
> > Cc: stable@xxxxxxxxxxxxxxx
>
> As this can only be duplicated with fault-injection, it really doesn't
> need to go to any stable kernels, right?
Agreed, I'll drop it.
>
> > + if (!uport->tty_groups) {
> > + kfree(uport->name);
> > + uport->name = NULL;
>
> Why set this to NULL?
>
It's not necessary. I will remove it.
Thanks,
Karl