broadcom_sta: Add patch to fix NULL pointer deref
The patch is from the following Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=523326#c24 Built successfully against Linux 3.18.36, 4.4.16 and 4.7.0. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Cc: @phreedom, @vcunat
This commit is contained in:
parent
8f08399671
commit
fef4b62657
|
@ -23,6 +23,7 @@ stdenv.mkDerivation {
|
|||
./i686-build-failure.patch
|
||||
./license.patch
|
||||
./linux-4.7.patch
|
||||
./null-pointer-fix.patch
|
||||
./gcc.patch
|
||||
];
|
||||
|
||||
|
|
13
pkgs/os-specific/linux/broadcom-sta/null-pointer-fix.patch
Normal file
13
pkgs/os-specific/linux/broadcom-sta/null-pointer-fix.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff -urN a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
|
||||
--- a/src/wl/sys/wl_linux.c 2015-01-06 12:33:42.981659618 +0100
|
||||
+++ b/src/wl/sys/wl_linux.c 2015-01-06 12:34:05.647395418 +0100
|
||||
@@ -2157,8 +2157,8 @@
|
||||
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);
|
||||
|
Loading…
Reference in a new issue