[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c984e6c2-b79a-45dc-8930-31c61e2f23c2@lunn.ch>
Date: Mon, 4 Mar 2024 15:21:39 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Ravi Gunasekaran <r-gunasekaran@...com>
Cc: Lukasz Majewski <lukma@...x.de>,
Oleksij Rempel <o.rempel@...gutronix.de>,
Eric Dumazet <edumazet@...gle.com>,
Vladimir Oltean <olteanv@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org,
Tristram.Ha@...rochip.com,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Paolo Abeni <pabeni@...hat.com>,
Nikita Zhandarovich <n.zhandarovich@...tech.ru>,
Murali Karicheri <m-karicheri2@...com>,
Ziyang Xuan <william.xuanziyang@...wei.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: hsr: Use full string description when opening HSR
network device
> > 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
Powered by blists - more mailing lists