Changeset 24935


Ignore:
Timestamp:
2011-01-08T19:04:04+01:00 (7 years ago)
Author:
juhosg
Message:

generic: rtl8366s: use correct bitmasks in sanity checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/rtl8366s.c

    r24934 r24935  
    456456 
    457457        if (vlan4k->vid >= RTL8366S_NUM_VIDS || 
    458             vlan4k->member > RTL8366S_PORT_ALL || 
    459             vlan4k->untag > RTL8366S_PORT_ALL || 
     458            vlan4k->member > RTL8366S_VLAN_MEMBER_MASK || 
     459            vlan4k->untag > RTL8366S_VLAN_UNTAG_MASK || 
    460460            vlan4k->fid > RTL8366S_FIDMAX) 
    461461                return -EINVAL; 
     
    525525            vlanmc->vid >= RTL8366S_NUM_VIDS || 
    526526            vlanmc->priority > RTL8366S_PRIORITYMAX || 
    527             vlanmc->member > RTL8366S_PORT_ALL || 
    528             vlanmc->untag > RTL8366S_PORT_ALL || 
     527            vlanmc->member > RTL8366S_VLAN_MEMBER_MASK || 
     528            vlanmc->untag > RTL8366S_VLAN_UNTAG_MASK || 
    529529            vlanmc->fid > RTL8366S_FIDMAX) 
    530530                return -EINVAL; 
Note: See TracChangeset for help on using the changeset viewer.