Thread (3 messages) flat view 3 messages, 3 authors, 2021-01-21

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

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-01-19 21:19:38
Also in: kernel-janitors


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 checked earlier.

Fixes: 98cd1552ea27 ("net: dsa: Mock-up driver")
Signed-off-by: Dan Carpenter <redacted>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help