Changeset 11880


Ignore:
Timestamp:
2008-07-20T01:09:43+02:00 (10 years ago)
Author:
nbd
Message:

add extra safety for the packet mangling in the mvswitch driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c

    r11410 r11880  
    7979                goto error; 
    8080 
    81         if ((skb->len <= 62) || (skb_headroom(skb) < MV_HEADER_SIZE)) { 
     81        if (skb_cloned(skb) || (skb->len <= 62) || (skb_headroom(skb) < MV_HEADER_SIZE)) { 
    8282                if (pskb_expand_head(skb, MV_HEADER_SIZE, 0, GFP_ATOMIC)) 
    8383                        goto error_expand; 
Note: See TracChangeset for help on using the changeset viewer.