From: Holger Schurig Date: Mon, 2 Jul 2007 08:50:32 +0000 (+0200) Subject: [PATCH] libertas: fix use-after-free in rx path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d082b9b5c6edf2e1d241af4630f12f0e5e2d2377;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] libertas: fix use-after-free in rx path ... by removing an ill-conceived, useless line. Discovered by coverity. Signed-off-by: Holger Schurig Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/rx.c b/drivers/net/wireless/libertas/rx.c index 88d9d2d787d..769c86fb950 100644 --- a/drivers/net/wireless/libertas/rx.c +++ b/drivers/net/wireless/libertas/rx.c @@ -439,7 +439,6 @@ static int process_rxed_802_11_packet(wlan_private * priv, struct sk_buff *skb) ret = 0; done: - skb->protocol = __constant_htons(0x0019); /* ETH_P_80211_RAW */ lbs_deb_leave_args(LBS_DEB_RX, "ret %d", ret); return ret; }