Re: [PATCH net-next] net: dsa: Fix off by one in dsa_loop_port_vlan_add()

2021-01-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 19 Jan 2021 17:53:35 +0300 you wrote: > The > comparison is intended to be >= to prevent reading beyond the > end of the ps->vlans[] array. It doesn't affect run time though because > the ps->vlans[] array has VLAN

Re: [PATCH net-next] net: dsa: Fix off by one in dsa_loop_port_vlan_add()

2021-01-19 Thread Florian Fainelli
On 1/19/2021 6:53 AM, Dan Carpenter wrote: > The > comparison is intended to be >= to prevent reading beyond the > end of the ps->vlans[] array. It doesn't affect run time though because > the ps->vlans[] array has VLAN_N_VID (4096) elements and the vlan->vid > cannot be > 4094 because it is ch

[PATCH net-next] net: dsa: Fix off by one in dsa_loop_port_vlan_add()

2021-01-19 Thread Dan Carpenter
The > comparison is intended to be >= to prevent reading beyond the end of the ps->vlans[] array. It doesn't affect run time though because the ps->vlans[] array has VLAN_N_VID (4096) elements and the vlan->vid cannot be > 4094 because it is checked earlier. Fixes: 98cd1552ea27 ("net: dsa: Mock-u