diff options
author | David Lin <dlin@marvell.com> | 2015-12-16 10:00:41 +0800 |
---|---|---|
committer | David Lin <dlin@marvell.com> | 2015-12-16 10:00:41 +0800 |
commit | 274ec5979b2080dbfe523d1618e69cebc845c572 (patch) | |
tree | 6873afe9eb57e2a567e4eb991fdc37c41756db14 | |
parent | 1f938d717ace43ba0df2245b29a5bf154b515e60 (diff) |
Change GFP_KERNEL to GFP_ATOMIC for kmalloc().
AMSDU function is called in atomic context, GFP_ATOMIC
should be used.
Signed-off-by: David Lin <dlin@marvell.com>
-rw-r--r-- | tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -564,7 +564,7 @@ static inline struct sk_buff *mwl_tx_do_amsdu(struct mwl_priv *priv, struct sk_buff *newskb; amsdu_pkts = (struct sk_buff_head *) - kmalloc(sizeof(*amsdu_pkts), GFP_KERNEL); + kmalloc(sizeof(*amsdu_pkts), GFP_ATOMIC); if (!amsdu_pkts) { spin_unlock_bh(&sta_info->amsdu_lock); return tx_skb; |