diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-01-20 09:30:25 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-01-20 09:30:25 +0000 |
commit | 0296b24f804941dcde569223db0ed5660c90e0fc (patch) | |
tree | 78f945e5c47f19c9c4c11f2aa51d27df1afaa0da /target/linux/ar71xx/files/drivers | |
parent | 743e7617b023a64eb7ba209906f37f29a0832c66 (diff) | |
download | mtk-20170518-0296b24f804941dcde569223db0ed5660c90e0fc.zip mtk-20170518-0296b24f804941dcde569223db0ed5660c90e0fc.tar.gz mtk-20170518-0296b24f804941dcde569223db0ed5660c90e0fc.tar.bz2 |
rtl8366_smi: fix parameter checking in rtl8366_attr_get_vlan_info
SVN-Revision: 19241
Diffstat (limited to 'target/linux/ar71xx/files/drivers')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c | 2 |
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 6c807bc..4606906 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)); |