Changeset 24995 for branches/backfire


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

backfire: generic: rtl8366s: use correct bitmasks in sanity checks (backport of r24935)

File:
1 edited

Legend:

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

    r24994 r24995  
    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.