Changeset 24930


Ignore:
Timestamp:
2011-01-08T12:28:35+01:00 (5 years ago)
Author:
juhosg
Message:

generic: rtl8366rb: use correct bitmasks in sanity checks

File:
1 edited

Legend:

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

    r24125 r24930  
    459459 
    460460        if (vlan4k->vid >= RTL8366RB_NUM_VIDS || 
    461             vlan4k->member > RTL8366RB_PORT_ALL || 
    462             vlan4k->untag > RTL8366RB_PORT_ALL || 
     461            vlan4k->member > RTL8366RB_VLAN_MEMBER_MASK || 
     462            vlan4k->untag > RTL8366RB_VLAN_UNTAG_MASK || 
    463463            vlan4k->fid > RTL8366RB_FIDMAX) 
    464464                return -EINVAL; 
     
    526526            vlanmc->vid >= RTL8366RB_NUM_VIDS || 
    527527            vlanmc->priority > RTL8366RB_PRIORITYMAX || 
    528             vlanmc->member > RTL8366RB_PORT_ALL || 
    529             vlanmc->untag > RTL8366RB_PORT_ALL || 
     528            vlanmc->member > RTL8366RB_VLAN_MEMBER_MASK || 
     529            vlanmc->untag > RTL8366RB_VLAN_UNTAG_MASK || 
    530530            vlanmc->fid > RTL8366RB_FIDMAX) 
    531531                return -EINVAL; 
Note: See TracChangeset for help on using the changeset viewer.