File: 06-broadcom-sta-6.30.223.248-linux-3.18-null-pointer-crash.patch

package info (click to toggle)
broadcom-sta 6.30.223.271-23
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm
  • size: 17,716 kB
  • sloc: ansic: 27,414; makefile: 316; xml: 18; sh: 14
file content (25 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Hugo Osvaldo Barrera <hugo@barrera.io>
Date: Wed, 6 May 2015 21:28:57 +0200
Subject: broadcom-sta-6.30.223.248-linux-3.18-null-pointer-crash

Origin: https://bugs.debian.org/773713

Downloaded from https://gist.github.com/hobarrera/ac0e6225210ac5bb13f6#file-broadcom-sta-6-30-223-248-linux-3-18-null-pointer-crash-patch
---
 amd64/src/wl/sys/wl_linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/amd64/src/wl/sys/wl_linux.c b/amd64/src/wl/sys/wl_linux.c
index 32a0ad5..e2f1cb6 100644
--- a/amd64/src/wl/sys/wl_linux.c
+++ b/amd64/src/wl/sys/wl_linux.c
@@ -2160,8 +2160,8 @@ wl_start(struct sk_buff *skb, struct net_device *dev)
 	wlif = WL_DEV_IF(dev);
 	wl = WL_INFO(dev);
 
+	skb->prev = NULL;
 	if (WL_ALL_PASSIVE_ENAB(wl) || (WL_RTR() && WL_CONFIG_SMP())) {
-		skb->prev = NULL;
 
 		TXQ_LOCK(wl);