Changeset 24991


Ignore:
Timestamp:
2011-01-14T19:19:18+01:00 (7 years ago)
Author:
juhosg
Message:

backfire: generic: rtl8366rb: use correct bitmasks in sanity checks (backport of r24930)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/generic-2.6/files/drivers/net/phy/rtl8366rb.c

    r24990 r24991  
    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.