linux/drivers/net/wireless
Lubomir Rintel e662026eef libertas: don't set URB_ZERO_PACKET on IN USB transfer
commit 6528d88047 upstream.

The USB core gets rightfully upset:

  usb 1-1: BOGUS urb flags, 240 --> 200
  WARNING: CPU: 0 PID: 60 at drivers/usb/core/urb.c:503 usb_submit_urb+0x2f8/0x3ed
  Modules linked in:
  CPU: 0 PID: 60 Comm: kworker/0:3 Not tainted 4.19.0-rc6-00319-g5206d00a45c7 #39
  Hardware name: OLPC XO/XO, BIOS OLPC Ver 1.00.01 06/11/2014
  Workqueue: events request_firmware_work_func
  EIP: usb_submit_urb+0x2f8/0x3ed
  Code: 75 06 8b 8f 80 00 00 00 8d 47 78 89 4d e4 89 55 e8 e8 35 1c f6 ff 8b 55 e8 56 52 8b 4d e4 51 50 68 e3 ce c7 c0 e8 ed 18 c6 ff <0f> 0b 83 c4 14 80 7d ef 01 74 0a 80 7d ef 03 0f 85 b8 00 00 00 8b
  EAX: 00000025 EBX: ce7d4980 ECX: 00000000 EDX: 00000001
  ESI: 00000200 EDI: ce7d8800 EBP: ce7f5ea8 ESP: ce7f5e70
  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 EFLAGS: 00210292
  CR0: 80050033 CR2: 00000000 CR3: 00e80000 CR4: 00000090
  Call Trace:
   ? if_usb_fw_timeo+0x64/0x64
   __if_usb_submit_rx_urb+0x85/0xe6
   ? if_usb_fw_timeo+0x64/0x64
   if_usb_submit_rx_urb_fwload+0xd/0xf
   if_usb_prog_firmware+0xc0/0x3db
   ? _request_firmware+0x54/0x47b
   ? _request_firmware+0x89/0x47b
   ? if_usb_probe+0x412/0x412
   lbs_fw_loaded+0x55/0xa6
   ? debug_smp_processor_id+0x12/0x14
   helper_firmware_cb+0x3c/0x3f
   request_firmware_work_func+0x37/0x6f
   process_one_work+0x164/0x25a
   worker_thread+0x1c4/0x284
   kthread+0xec/0xf1
   ? cancel_delayed_work_sync+0xf/0xf
   ? kthread_create_on_node+0x1a/0x1a
   ret_from_fork+0x2e/0x38
  ---[ end trace 3ef1e3b2dd53852f ]---

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
[bwh: Backported to 3.16: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2019-02-11 17:53:32 +00:00
..
ath wil6210: missing length check in wmi_set_ie 2018-12-16 22:09:44 +00:00
b43 b43/leds: Ensure NUL-termination of LED name string 2018-12-16 22:08:41 +00:00
b43legacy b43legacy/leds: Ensure NUL-termination of LED name string 2018-12-16 22:08:41 +00:00
brcm80211 net/wireless/brcm80211/brcmfmac: Make return type and name reflect actual semantics 2018-11-20 18:06:01 +00:00
cw1200 Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2014-04-30 12:04:27 -04:00
hostap hostap: avoid uninitialized variable use in hfa384x_get_rid 2017-11-11 13:33:54 +00:00
ipw2x00 net: Replace min macro with min_t 2014-03-03 15:35:54 -05:00
iwlegacy iwlegacy: avoid warning about missing braces 2017-11-11 13:33:54 +00:00
iwlwifi iwlwifi: mvm: check return value of rs_rate_from_ucode_rate() 2019-02-11 17:53:31 +00:00
libertas libertas: don't set URB_ZERO_PACKET on IN USB transfer 2019-02-11 17:53:32 +00:00
libertas_tf libertas_tf: prevent underflow in process_cmdrequest() 2019-02-11 17:53:16 +00:00
mwifiex mwifiex: pcie: tighten a check in mwifiex_pcie_process_event_ready() 2018-11-20 18:04:49 +00:00
orinoco Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-06-12 14:27:40 -07:00
p54 p54: memset(0) whole array 2018-11-20 18:06:02 +00:00
prism54 net: Replace min macro with min_t 2014-03-03 15:35:54 -05:00
rsi Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-06-12 14:27:40 -07:00
rt2x00 rt2x00usb: mark device removed when get ENOENT usb error 2018-02-13 18:42:20 +00:00
rtl818x rtl8187: Fix NULL pointer dereference in priv->conf_mutex 2018-10-21 08:44:51 +01:00
rtlwifi rtl8723be: Fix misleading indentation 2018-11-20 18:04:45 +00:00
ti wl1251: check return from call to wl1251_acx_arp_ip_filter 2018-06-16 22:21:47 +01:00
zd1211rw zd1211rw: fix NULL-deref at probe 2017-08-26 02:14:25 +01:00
adm8211.c adm80211: return an error if adm8211_alloc_rings() fails 2017-06-05 21:16:44 +01:00
adm8211.h drivers/net: use __packed annotation 2010-06-03 03:18:23 -07:00
airo.c airo: replace function ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan} 2014-02-28 14:11:13 -05:00
airo.h [PATCH] airo.c/airo_cs.c: correct prototypes 2005-11-05 21:00:03 -05:00
airo_cs.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
at76c50x-usb.c at76c50x: fix scan does not work with latest mac80211 2014-06-05 14:15:08 -04:00
at76c50x-usb.h at76c50x: fix scan does not work with latest mac80211 2014-06-05 14:15:08 -04:00
atmel.c atmel: replace function ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan} 2014-02-28 14:11:13 -05:00
atmel.h drivers/net/wireless: Fix FSF address in file headers 2013-12-11 10:56:20 -05:00
atmel_cs.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
atmel_pci.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
Kconfig rsi: Add RS9113 wireless driver 2014-03-17 13:51:52 -04:00
mac80211_hwsim.c mac80211_hwsim: fix compiler warning on MIPS 2018-03-03 15:52:29 +00:00
mac80211_hwsim.h mac80211_hwsim: allow creation of single-channel radios with chanctx 2014-02-11 13:10:02 +01:00
Makefile rsi: Add RS9113 wireless driver 2014-03-17 13:51:52 -04:00
mwl8k.c mwl8k: mwl8k_update_survey can be static 2014-03-06 14:29:58 -05:00
ray_cs.c ray_cs: replace del_timer by del_timer_sync 2014-04-22 15:06:28 -04:00
ray_cs.h pcmcia: do not use win_req_t when calling pcmcia_request_window() 2010-09-29 17:20:21 +02:00
rayctl.h ray_cs: Fix array bounds warnings. 2011-11-26 15:41:29 -05:00
rndis_wlan.c rndis_wlan: potential buffer overflow in rndis_wlan_auth_indication() 2018-12-16 22:08:06 +00:00
wl3501.h drivers/net: use __packed annotation 2010-06-03 03:18:23 -07:00
wl3501_cs.c wl3501_cs: replace function ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan} 2014-02-28 14:12:36 -05:00
zd1201.c zd1201: replace function ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan} 2014-02-28 14:12:36 -05:00
zd1201.h zd1201: convert to internal net_device_stats 2009-03-21 22:51:20 -07:00