[PATCH v2 1/4] serial: core: do fallible allocations before the console can be registered

Karl Mehltretter kmehltretter at gmail.com
Fri Jul 31 05:37:28 PDT 2026


On Thu, Jul 30, 2026 at 04:28:10PM +0100, Greg Kroah-Hartman wrote:
> > Cc: stable at vger.kernel.org
> 
> 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



More information about the linux-arm-kernel mailing list