Skip to content

Commit

Permalink
rtl8192du: Fix 2 places that were scheduling while atomic
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
lwfinger committed Jul 11, 2014
1 parent f9c1500 commit f6abd96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/rtw_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void update_BCNTIM(struct rtw_adapter *padapter)
}

if (remainder_ielen > 0) {
pbackup_remainder_ie = kmalloc(remainder_ielen, GFP_KERNEL);
pbackup_remainder_ie = kmalloc(remainder_ielen, GFP_ATOMIC);
if (pbackup_remainder_ie && premainder_ie)
memcpy(pbackup_remainder_ie, premainder_ie, remainder_ielen);
}
Expand Down
2 changes: 1 addition & 1 deletion core/rtw_mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,7 @@ void rtw_stassoc_event_callback(struct rtw_adapter *adapter, u8 *pbuf)

spin_lock_bh(&psta->lock);
if (psta->passoc_req && psta->assoc_req_len > 0) {
passoc_req = kzalloc(psta->assoc_req_len, GFP_KERNEL);
passoc_req = kzalloc(psta->assoc_req_len, GFP_ATOMIC);
if (passoc_req) {
assoc_req_len = psta->assoc_req_len;
memcpy(passoc_req, psta->passoc_req,
Expand Down

0 comments on commit f6abd96

Please sign in to comment.