summaryrefslogtreecommitdiff
path: root/aports/broadcom-wl/001-null-pointer-fix.patch
diff options
context:
space:
mode:
authorPÁLI Gábor János <pali.gabor@gmail.com>2022-04-27 23:12:05 +0200
committerPÁLI Gábor János <pali.gabor@gmail.com>2022-04-27 23:12:05 +0200
commite4e108c834bb19a76bb9b4ae0c8c585785fb6675 (patch)
treeebf18c1e3727da6af051358f5d297d24fafba4db /aports/broadcom-wl/001-null-pointer-fix.patch
parent1ecfff829f55162ba6414e34f3110517c3061b90 (diff)
downloadfreebsd-wifibox-alpine-e4e108c834bb19a76bb9b4ae0c8c585785fb6675.zip
Add optional package for the Broadcom STA (`wl`) driver.
Ported from: Arch Linux
Diffstat (limited to 'aports/broadcom-wl/001-null-pointer-fix.patch')
-rw-r--r--aports/broadcom-wl/001-null-pointer-fix.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/aports/broadcom-wl/001-null-pointer-fix.patch b/aports/broadcom-wl/001-null-pointer-fix.patch
new file mode 100644
index 0000000..adef19f
--- /dev/null
+++ b/aports/broadcom-wl/001-null-pointer-fix.patch
@@ -0,0 +1,27 @@
+Description: Fixing null pointer crash
+
+Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773713
+Bug-Ubuntu: https://launchpad.net/bugs/1415880
+Last-Update: 2015-08-18
+
+---
+ src/wl/sys/wl_linux.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
+index 860b935..295156f 100644
+--- a/src/wl/sys/wl_linux.c
++++ b/src/wl/sys/wl_linux.c
+@@ -2157,8 +2157,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);
+
+--
+1.9.1
+