aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-01-20 09:30:25 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-01-20 09:30:25 +0000
commit95ccf9e5dd9d95e15415c47213e4718d2e32ab23 (patch)
treedf75f87ebabf04f1a0181c6eb12d82fe5b77c357 /target/linux
parente41e188da3b29832e82661e4ddfd85750890b0f3 (diff)
downloadupstream-95ccf9e5dd9d95e15415c47213e4718d2e32ab23.tar.gz
upstream-95ccf9e5dd9d95e15415c47213e4718d2e32ab23.tar.bz2
upstream-95ccf9e5dd9d95e15415c47213e4718d2e32ab23.zip
rtl8366_smi: fix parameter checking in rtl8366_attr_get_vlan_info
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19241 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c b/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c
index 6c807bc020..46069067e7 100644
--- a/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c
+++ b/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c
@@ -1359,7 +1359,7 @@ static int rtl8366_attr_get_vlan_info(struct switch_dev *dev,
struct rtl8366_smi *smi = sw_to_rtl8366(dev);
char *buf = smi->buf;
- if (val->port_vlan >= RTL8366_NUM_PORTS)
+ if (val->port_vlan >= RTL8366_NUM_VLANS)
return -EINVAL;
memset(buf, '\0', sizeof(smi->buf));