[PATCH] libertas: fix use-after-free in rx path
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Mon, 2 Jul 2007 08:50:32 +0000 (10:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Jul 2007 17:42:11 +0000 (13:42 -0400)
... by removing an ill-conceived, useless line.  Discovered by coverity.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/rx.c

index 88d9d2d787d5ae38486736c4e5876c639145fb3f..769c86fb95096a99e60e74c39900e6f6da2cf907 100644 (file)
@@ -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;
 }