Re: [PATCH] net/netvsc: fix bogus sizeof calculation

2023-06-29 Thread Tyler Retzlaff
On Wed, Jun 28, 2023 at 05:29:57PM -0700, lon...@linuxonhyperv.com wrote: > From: Stephen Hemminger > > Found by cppcheck. > > drivers/net/netvsc/hn_rndis.c:332:21: warning: Found calculation inside > sizeof(). [sizeofCalculation] if (len < sizeof(3 * sizeof(uint32_t))) { > > Fixes: 4e9c73e96

Re: [PATCH] net/netvsc: fix bogus sizeof calculation

2023-06-29 Thread Ferruh Yigit
On 6/29/2023 1:29 AM, lon...@linuxonhyperv.com wrote: > From: Stephen Hemminger > > Found by cppcheck. > > drivers/net/netvsc/hn_rndis.c:332:21: warning: Found calculation inside > sizeof(). [sizeofCalculation] if (len < sizeof(3 * sizeof(uint32_t))) { > > Fixes: 4e9c73e96e83 ("net/netvsc: ad

[PATCH] net/netvsc: fix bogus sizeof calculation

2023-06-28 Thread longli
From: Stephen Hemminger Found by cppcheck. drivers/net/netvsc/hn_rndis.c:332:21: warning: Found calculation inside sizeof(). [sizeofCalculation] if (len < sizeof(3 * sizeof(uint32_t))) { Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Signed-off-by: Stephen Hemminger Signed-of