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:
aszlig 2016-08-01 21:00:02 +02:00
parent 8f08399671
commit fef4b62657
No known key found for this signature in database
GPG Key ID: 1DE8E48E57DB5436
2 changed files with 14 additions and 0 deletions

View File

@ -23,6 +23,7 @@ stdenv.mkDerivation {
./i686-build-failure.patch
./license.patch
./linux-4.7.patch
./null-pointer-fix.patch
./gcc.patch
];

View 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);