Re: [PATCH] net: hsr: Use full string description when opening HSR network device

From: Andrew Lunn
Date: Mon Mar 04 2024 - 09:21:54 EST


> > case HSR_PT_SLAVE_A:
> > - designation = 'A';
> > + designation = "Slave A";
>
> "designation" is now a pointer and is being assigned value
> without even allocating memory for it.

"Slave A" is in memory somewhere, probably the .rodata section. So
designation now points to that memory.

Andrew