Skip to content
Snippets Groups Projects
Commit 29cc927e authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

generic: ar8216: fix invalid bounds check imported from ChromeOS (FS#347)


The priv->vlan_id member is of size AR8X16_MAX_VLANS, not AR8X16_MAX_PORTS,
so check for the proper maximum value in order to avoid capping valid VLAN IDs
to 7 (AR8X16_MAX_PORTS - 1).

Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 08db3e1b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment