diff options
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 457166889cc7..4ab29282dd67 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -476,7 +476,7 @@ ieee80211_tx_h_fragment(struct ieee80211_txrx_data *tx) | |||
476 | hdrlen = ieee80211_get_hdrlen(tx->fc); | 476 | hdrlen = ieee80211_get_hdrlen(tx->fc); |
477 | payload_len = first->len - hdrlen; | 477 | payload_len = first->len - hdrlen; |
478 | per_fragm = frag_threshold - hdrlen - FCS_LEN; | 478 | per_fragm = frag_threshold - hdrlen - FCS_LEN; |
479 | num_fragm = (payload_len + per_fragm - 1) / per_fragm; | 479 | num_fragm = DIV_ROUND_UP(payload_len, per_fragm); |
480 | 480 | ||
481 | frags = kzalloc(num_fragm * sizeof(struct sk_buff *), GFP_ATOMIC); | 481 | frags = kzalloc(num_fragm * sizeof(struct sk_buff *), GFP_ATOMIC); |
482 | if (!frags) | 482 | if (!frags) |