RE: [PATCH] net/mana: avoid the use of variable length array

2025-03-06 Thread Long Li
> Subject: Re: [PATCH] net/mana: avoid the use of variable length array > > On Tue, Mar 04, 2025 at 04:37:32PM -0800, lon...@linuxonhyperv.com wrote: > > From: Long Li > > > > The pathname can be defined as name[MAX_PATH]. This makes the driver > > compilable

Re: [PATCH] net/mana: avoid the use of variable length array

2025-03-05 Thread Andre Muezerie
On Tue, Mar 04, 2025 at 04:37:32PM -0800, lon...@linuxonhyperv.com wrote: > From: Long Li > > The pathname can be defined as name[MAX_PATH]. This makes the driver > compilable using MSVC. > > Signed-off-by: Long Li > --- > drivers/net/mana/mana.c | 7 ++- > 1 file changed, 2 insertions(+),

RE: [PATCH] net/mana: avoid the use of variable length array

2025-03-05 Thread Morten Brørup
> From: lon...@linuxonhyperv.com [mailto:lon...@linuxonhyperv.com] > Sent: Wednesday, 5 March 2025 01.38 > > From: Long Li > > The pathname can be defined as name[MAX_PATH]. This makes the driver > compilable using MSVC. The name is PATH_MAX, not MAX_PATH. It's correct in the code. > > Signed