Skip to content

Commit

Permalink
[PATCH] drivers/net/wireless/libertas/rx.c: fix use-after-free
Browse files Browse the repository at this point in the history
skb could have been freed by then. Also, in libertas_upload_rx_packet(),
skb->protocol is initialized by eth_type_trans().

Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Eugene Teo authored and John W. Linville committed May 22, 2007
1 parent 596f2d0 commit 412e8a0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/libertas/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,5 @@ static int process_rxed_802_11_packet(wlan_private * priv, struct sk_buff *skb)
done:
LEAVE();

skb->protocol = __constant_htons(0x0019); /* ETH_P_80211_RAW */

return (ret);
}

0 comments on commit 412e8a0

Please sign in to comment.