summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lin <dlin@marvell.com>2015-12-16 10:00:41 +0800
committerDavid Lin <dlin@marvell.com>2015-12-16 10:00:41 +0800
commit274ec5979b2080dbfe523d1618e69cebc845c572 (patch)
tree6873afe9eb57e2a567e4eb991fdc37c41756db14
parent1f938d717ace43ba0df2245b29a5bf154b515e60 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tx.c b/tx.c
index 6f74c33..75ccff7 100644
--- a/tx.c
+++ b/tx.c
@@ -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;