]> Pileus Git - ~andy/linux/blobdiff - net/mac80211/tx.c
mac80211: fix fragmentation code, particularly for encryption
[~andy/linux] / net / mac80211 / tx.c
index 27c990bf2320237aa3c3124e25d0b0bc9508fb40..97a02d3f7d87720795e1518d27fce0bbaed9bc4f 100644 (file)
@@ -878,7 +878,7 @@ static int ieee80211_fragment(struct ieee80211_tx_data *tx,
        }
 
        /* adjust first fragment's length */
-       skb->len = hdrlen + per_fragm;
+       skb_trim(skb, hdrlen + per_fragm);
        return 0;
 }