1From 507d93e3651d78c1df8bd185b0703872d0c2585b Mon Sep 17 00:00:00 2001
2From: aszlig <aszlig@redmoonstudios.org>
3Date: Mon, 1 Aug 2016 21:00:02 +0200
4Subject: [PATCH 03/16] linuxPackages.broadcom_sta: fix NULL pointer deref
5
6The patch is from the following Gentoo bug:
7
8https://bugs.gentoo.org/show_bug.cgi?id=523326#c24
9
10Built successfully against Linux 3.18.36, 4.4.16 and 4.7.0.
11
12Signed-off-by: aszlig <aszlig@redmoonstudios.org>
13Cc: @phreedom, @vcunat
14---
15 src/wl/sys/wl_linux.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
19index 14922c0..65d7a22 100644
20--- a/src/wl/sys/wl_linux.c
21+++ b/src/wl/sys/wl_linux.c
22@@ -2167,8 +2167,8 @@ wl_start(struct sk_buff *skb, struct net_device *dev)
23 wlif = WL_DEV_IF(dev);
24 wl = WL_INFO(dev);
25
26+ skb->prev = NULL;
27 if (WL_ALL_PASSIVE_ENAB(wl) || (WL_RTR() && WL_CONFIG_SMP())) {
28- skb->prev = NULL;
29
30 TXQ_LOCK(wl);
31
32--
332.45.1
34