aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/au1000
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-12-23 19:15:14 +0100
committerJo-Philipp Wich <jo@mein.io>2016-12-23 19:24:14 +0100
commit29cc927ef5a6d2f1e8de0d3d9fc67877aa4b6af7 (patch)
tree8fa6115545d0210343049a939a2375210a812607 /target/linux/au1000
parent08db3e1b859f60cd4668d67f45629e757e8cbfef (diff)
downloadupstream-29cc927ef5a6d2f1e8de0d3d9fc67877aa4b6af7.tar.gz
upstream-29cc927ef5a6d2f1e8de0d3d9fc67877aa4b6af7.tar.bz2
upstream-29cc927ef5a6d2f1e8de0d3d9fc67877aa4b6af7.zip
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: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/linux/au1000')
0 files changed, 0 insertions, 0 deletions