Skip to content

Commit

Permalink
rtlwifi: Fix two 'scheduling while atomic' splats
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Finger <[email protected]>
  • Loading branch information
lwfinger committed Dec 23, 2016
1 parent 9397e60 commit 01cbe67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2115,12 +2115,12 @@ void rtl_c2hcmd_enqueue(struct ieee80211_hw *hw, u8 tag, u8 len, u8 *val)
unsigned long flags;
struct rtl_c2hcmd *c2hcmd;

c2hcmd = kmalloc(sizeof(*c2hcmd), GFP_KERNEL);
c2hcmd = kmalloc(sizeof(*c2hcmd), GFP_ATOMIC);

if (!c2hcmd)
goto label_err;

c2hcmd->val = kmalloc(len, GFP_KERNEL);
c2hcmd->val = kmalloc(len, GFP_ATOMIC);

if (!c2hcmd->val)
goto label_err2;
Expand Down

0 comments on commit 01cbe67

Please sign in to comment.