Commit 7957a9de authored by David S. Miller's avatar David S. Miller

mac80211: Don't access sk_queue_head->next directly.

Use __skb_peek() instead.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b69bd7d
...@@ -2077,6 +2077,7 @@ ieee80211_reassemble_find(struct ieee80211_sub_if_data *sdata, ...@@ -2077,6 +2077,7 @@ ieee80211_reassemble_find(struct ieee80211_sub_if_data *sdata,
idx = sdata->fragment_next; idx = sdata->fragment_next;
for (i = 0; i < IEEE80211_FRAGMENT_MAX; i++) { for (i = 0; i < IEEE80211_FRAGMENT_MAX; i++) {
struct ieee80211_hdr *f_hdr; struct ieee80211_hdr *f_hdr;
struct sk_buff *f_skb;
idx--; idx--;
if (idx < 0) if (idx < 0)
...@@ -2088,7 +2089,8 @@ ieee80211_reassemble_find(struct ieee80211_sub_if_data *sdata, ...@@ -2088,7 +2089,8 @@ ieee80211_reassemble_find(struct ieee80211_sub_if_data *sdata,
entry->last_frag + 1 != frag) entry->last_frag + 1 != frag)
continue; continue;
f_hdr = (struct ieee80211_hdr *)entry->skb_list.next->data; f_skb = __skb_peek(&entry->skb_list);
f_hdr = (struct ieee80211_hdr *) f_skb->data;
/* /*
* Check ftype and addresses are equal, else check next fragment * Check ftype and addresses are equal, else check next fragment
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment