diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-01-19 15:48:03 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-20 04:34:49 +0100 |
commit | 8e4052c32d6b4b39c1e13c652c7e33748d447409 (patch) | |
tree | 716a26084f94a0594cbb8736ee9cbd221f8ee904 /scripts/cleanfile | |
parent | tcp: do not mess with cloned skbs in tcp_add_backlog() (diff) | |
download | linux-8e4052c32d6b4b39c1e13c652c7e33748d447409.tar.xz linux-8e4052c32d6b4b39c1e13c652c7e33748d447409.zip |
net: dsa: b53: fix an off by one in checking "vlan->vid"
The > comparison should be >= to prevent accessing one element beyond
the end of the dev->vlans[] array in the caller function, b53_vlan_add().
The "dev->vlans" array is allocated in the b53_switch_init() function
and it has "dev->num_vlans" elements.
Fixes: a2482d2ce349 ("net: dsa: b53: Plug in VLAN support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/YAbxI97Dl/pmBy5V@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/cleanfile')
0 files changed, 0 insertions, 0 deletions