浏览代码

[PATCH] drivers/net/wireless/libertas/rx.c: fix use-after-free

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>
Eugene Teo 18 年之前
父节点
当前提交
412e8a0ebf
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/net/wireless/libertas/rx.c

+ 0 - 2
drivers/net/wireless/libertas/rx.c

@@ -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);
 }