source: trunk/target/linux/ar71xx/patches-2.6.34/120-dsa-trailer-tag-validation-fix.patch @ 20141

Last change on this file since 20141 was 20141, checked in by acoul, 6 years ago

ar71xx: add 2.6.34 preliminary support (patches)

File size: 390 bytes
  • net/dsa/tag_trailer.c

    a b static int trailer_rcv(struct sk_buff *s 
    8686 
    8787        trailer = skb_tail_pointer(skb) - 4; 
    8888        if (trailer[0] != 0x80 || (trailer[1] & 0xf8) != 0x00 || 
    89             (trailer[3] & 0xef) != 0x00 || trailer[3] != 0x00) 
     89            (trailer[2] & 0xef) != 0x00 || (trailer[3] & 0xfe) != 0x00) 
    9090                goto out_drop; 
    9191 
    9292        source_port = trailer[1] & 7; 
Note: See TracBrowser for help on using the repository browser.