linux_dsm_epyc7002/drivers/net/wireless
Stanislaw Gruszka 81e63263aa iwlegacy: fix enqueue hcmd race conditions
We mark command as huge by using meta->flags from other (non huge) command,
but flags can be possibly overridden, when non huge command is enqueued,
what can lead to:

WARNING: at lib/dma-debug.c:696 dma_debug_device_change+0x1a3/0x1f0()
DMA-API: device driver has pending DMA allocations while released from device [count=1]

To fix introduce additional CMD_MAPPED to mark command as mapped and
serialize iwl_enqueue_hcmd() with iwl_tx_cmd_complete() using
hcmd_lock. Serialization will also fix possible race conditions,
because q->read_ptr, q->write_ptr are modified/used in parallel.

Do not change callback, I did (and fixed) that mistake in iwlagn.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-04-29 15:36:14 -04:00
..
ath ath9k_htc: Dump modal eeprom header for UB91/94/95 2011-04-29 15:36:13 -04:00
b43 b43: avoid uninitialized variable warnings in phy_n 2011-04-29 15:25:45 -04:00
b43legacy
hostap
ipw2x00
iwlegacy iwlegacy: fix enqueue hcmd race conditions 2011-04-29 15:36:14 -04:00
iwlwifi iwlagn: fix tx power initialization 2011-04-29 15:36:13 -04:00
iwmc3200wifi
libertas libertas: use kernel-doc notation, fix comment style 2011-04-28 14:53:18 -04:00
libertas_tf
mwifiex mwifiex: fix copy-n-paste 'thinko' for tsf_val 2011-04-29 15:25:45 -04:00
orinoco
p54 p54: avoid uninitialized variable warning for freq 2011-04-29 15:25:46 -04:00
prism54
rt2x00 rt2x00: Implement get_antenna and set_antenna callback functions 2011-04-19 15:40:07 -04:00
rtl818x
rtlwifi rtlwifi: rtl8192ce: rtl8192cu: Fix most sparse warnings 2011-04-26 16:14:55 -04:00
wl12xx wl12xx: support FW TX inactivity triggers 2011-04-28 14:50:45 -04:00
wl1251 wl1251: Add support for idle mode 2011-04-07 15:34:14 -04:00
zd1211rw Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2011-04-07 16:45:40 -04:00
adm8211.c
adm8211.h
airo_cs.c
airo.c
airo.h
at76c50x-usb.c
at76c50x-usb.h
atmel_cs.c
atmel_pci.c
atmel.c
atmel.h
Kconfig
mac80211_hwsim.c
Makefile
mwl8k.c mwl8k: replace rateinfo bitfields with mask and shift macros 2011-04-28 14:53:23 -04:00
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c
wl3501_cs.c
wl3501.h
zd1201.c
zd1201.h