rtl8366_smi: fix parameter checking in rtl8366_attr_get_vlan_info
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 Jan 2010 09:30:25 +0000 (09:30 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 Jan 2010 09:30:25 +0000 (09:30 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19241 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c

index 6c807bc..4606906 100644 (file)
@@ -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));
This page took 0.024291 seconds and 4 git commands to generate.