aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/020-03-rt2x00usb-fix-anchor-initialization.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2017-08-22 23:59:48 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2017-10-01 12:49:11 +0200
commita8f63a0717f553e0a1b37ee9212fc4cb2a801426 (patch)
tree9016b975706f35b98075167f2cf6b15add308c9b /package/kernel/mac80211/patches/020-03-rt2x00usb-fix-anchor-initialization.patch
parent1114f5dc10755e3c92b5711b420818cf9e366874 (diff)
downloadupstream-a8f63a0717f553e0a1b37ee9212fc4cb2a801426.tar.gz
upstream-a8f63a0717f553e0a1b37ee9212fc4cb2a801426.tar.bz2
upstream-a8f63a0717f553e0a1b37ee9212fc4cb2a801426.zip
mac80211: update to backports-4.14-rc2
This updates mac80211 to backprots-4.14-rc2. This was compile and runtime tested with ath9k, ath10k and b43 with multiple stations and ieee80211w and in different scenarios by many other people. To create the backports-4.14-rc2-1.tar.xz use this repository: https://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git from tag v4.14-rc2-1 Then run this: ./gentree.py --git-revision v4.14-rc2 --clean <path to linux repo> ../backports-4.14-rc2-1 This also adapts the ath10k-ct and mt76 driver to the changed cfg80211 APIs and syncs the nl80211.h file in iw with the new version from backports-4.14-rc2. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/kernel/mac80211/patches/020-03-rt2x00usb-fix-anchor-initialization.patch')
-rw-r--r--package/kernel/mac80211/patches/020-03-rt2x00usb-fix-anchor-initialization.patch70
1 files changed, 0 insertions, 70 deletions
diff --git a/package/kernel/mac80211/patches/020-03-rt2x00usb-fix-anchor-initialization.patch b/package/kernel/mac80211/patches/020-03-rt2x00usb-fix-anchor-initialization.patch
deleted file mode 100644
index 5ff73df2a6..0000000000
--- a/package/kernel/mac80211/patches/020-03-rt2x00usb-fix-anchor-initialization.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 0488a6121dfe6cbd44de15ea3627913b7549a1e9 Mon Sep 17 00:00:00 2001
-From: Stanislaw Gruszka <sgruszka@redhat.com>
-Date: Wed, 8 Feb 2017 12:18:10 +0100
-Subject: [PATCH 03/19] rt2x00usb: fix anchor initialization
-
-If device fail to initialize we can OOPS in rt2x00lib_remove_dev(), due
-to using uninitialized usb_anchor structure:
-
-[ 855.435820] ieee80211 phy3: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1000 with error -19
-[ 855.435826] ieee80211 phy3: rt2800_probe_rt: Error - Invalid RT chipset 0x0000, rev 0000 detected
-[ 855.435829] ieee80211 phy3: rt2x00lib_probe_dev: Error - Failed to allocate device
-[ 855.435845] BUG: unable to handle kernel NULL pointer dereference at 0000000000000028
-[ 855.435900] IP: _raw_spin_lock_irq+0xd/0x30
-[ 855.435926] PGD 0
-[ 855.435953] Oops: 0002 [#1] SMP
-<snip>
-[ 855.437011] Call Trace:
-[ 855.437029] ? usb_kill_anchored_urbs+0x27/0xc0
-[ 855.437061] rt2x00lib_remove_dev+0x190/0x1c0 [rt2x00lib]
-[ 855.437097] rt2x00lib_probe_dev+0x246/0x7a0 [rt2x00lib]
-[ 855.437149] ? ieee80211_roc_setup+0x9e/0xd0 [mac80211]
-[ 855.437183] ? __kmalloc+0x1af/0x1f0
-[ 855.437207] ? rt2x00usb_probe+0x13d/0xc50 [rt2x00usb]
-[ 855.437240] rt2x00usb_probe+0x155/0xc50 [rt2x00usb]
-[ 855.437273] rt2800usb_probe+0x15/0x20 [rt2800usb]
-[ 855.437304] usb_probe_interface+0x159/0x2d0
-[ 855.437333] driver_probe_device+0x2bb/0x460
-
-Patch changes initialization sequence to fix the problem.
-
-Cc: Vishal Thanki <vishalthanki@gmail.com>
-Fixes: 8b4c0009313f ("rt2x00usb: Use usb anchor to manage URB")
-Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
-Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
----
- drivers/net/wireless/ralink/rt2x00/rt2x00usb.c | 13 ++++++++-----
- 1 file changed, 8 insertions(+), 5 deletions(-)
-
---- a/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
-+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
-@@ -825,10 +825,6 @@ int rt2x00usb_probe(struct usb_interface
- if (retval)
- goto exit_free_device;
-
-- retval = rt2x00lib_probe_dev(rt2x00dev);
-- if (retval)
-- goto exit_free_reg;
--
- rt2x00dev->anchor = devm_kmalloc(&usb_dev->dev,
- sizeof(struct usb_anchor),
- GFP_KERNEL);
-@@ -836,10 +832,17 @@ int rt2x00usb_probe(struct usb_interface
- retval = -ENOMEM;
- goto exit_free_reg;
- }
--
- init_usb_anchor(rt2x00dev->anchor);
-+
-+ retval = rt2x00lib_probe_dev(rt2x00dev);
-+ if (retval)
-+ goto exit_free_anchor;
-+
- return 0;
-
-+exit_free_anchor:
-+ usb_kill_anchored_urbs(rt2x00dev->anchor);
-+
- exit_free_reg:
- rt2x00usb_free_reg(rt2x00dev);
-