linux/drivers/net/wireless/intel/iwlwifi/mvm
Matti Gottlieb f742aaf36e iwlwifi: mvm: fix accessing Null pointer during fw dump collection
The firwmare file can come with data that is relevant for paging. This
data is availablet to the firmware upon request, but it stored in the
host's memory. During the firmware init flow, the driver configures the
firmware so that the firwmare knows where is the data.
When paging is used, the variable paging_mem_size is the number of bytes
that are available through paging. This variable is not zeror-ed if the
driver fails to configure the paging in the firmware, but the memory is
freed which is inconsistent.
This inconsistency led to a NULL pointer dereference in the code that
collects the debug data.

Fix this by zero-ing the paging_mem_size variable and NULLify the
relevant pointers, so that the code that collects the debug data will
know that the paging data is not available.

Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
2016-04-12 11:52:39 +03:00
..
binding.c
coex_legacy.c
coex.c
constants.h iwlwifi: mvm: make collecting fw debug data optional 2016-02-01 16:40:20 +02:00
d3.c iwlwifi: mvm: update ucode status before stopping device 2016-03-02 08:56:58 +02:00
debugfs-vif.c iwlwifi: mvm: support setting minimum quota from debugfs 2016-02-01 16:40:23 +02:00
debugfs.c iwlwifi: mvm: add ctdp operations to debugfs 2016-03-09 20:59:11 +02:00
debugfs.h
fw-api-coex.h
fw-api-d3.h iwlwifi: mvm: support beacon storing 2016-02-01 16:40:22 +02:00
fw-api-mac.h
fw-api-power.h
fw-api-rs.h
fw-api-rx.h iwlwifi: mvm: set the correct amsdu enum values 2016-03-07 13:34:16 +02:00
fw-api-scan.h iwlwifi: mvm: add extended dwell time 2015-12-20 23:27:40 +02:00
fw-api-sta.h iwlwifi: mvm: add new ADD_STA command version 2016-02-01 16:40:27 +02:00
fw-api-stats.h
fw-api-tof.h
fw-api-tx.h iwlwifi: mvm: rs: fix TPC statistics handling 2016-01-26 16:03:35 +02:00
fw-api.h iwlwifi: mvm: support VHT MU-MIMO notification 2016-02-27 22:00:11 +02:00
fw-dbg.c iwlwifi: mvm: fix accessing Null pointer during fw dump collection 2016-04-12 11:52:39 +03:00
fw-dbg.h iwlwifi: mvm: constify the parameters of a few functions in fw-dbg.c 2016-01-07 19:01:32 +02:00
fw.c iwlwifi: mvm: fix accessing Null pointer during fw dump collection 2016-04-12 11:52:39 +03:00
led.c
mac80211.c iwlwifi: mvm: fix memory leak in paging 2016-03-20 23:01:54 +02:00
mac-ctxt.c iwlwifi: mvm: update rx_status with mactime flag 2016-02-27 22:00:05 +02:00
Makefile iwlwifi: update key params on d0i3 entrance/exit 2015-12-20 23:27:43 +02:00
mvm.h iwlwifi: mvm: return the cooling state index instead of the budget 2016-03-09 21:05:13 +02:00
nvm.c iwlwifi: refactor the code that reads the MAC address from the NVM 2016-03-07 13:33:00 +02:00
offloading.c
ops.c iwlwifi: mvm: fix memory leak in paging 2016-03-20 23:01:54 +02:00
phy-ctxt.c
power.c iwlwifi: mvm: Remove iwl_mvm_update_beacon_abort 2016-02-01 16:40:26 +02:00
quota.c iwlwifi: mvm: support setting minimum quota from debugfs 2016-02-01 16:40:23 +02:00
rs.c iwlwifi: mvm: don't enable A-MSDU when the rates are too low 2016-02-27 22:00:02 +02:00
rs.h
rx.c iwlwifi: mvm: support filtered frames notification 2016-02-27 22:00:06 +02:00
rxmq.c iwlwifi: mvm: turn off AMSDU bit in QoS control for de-aggregated AMSDUs 2016-03-09 20:59:17 +02:00
scan.c iwlwifi: mvm: handle pass all scan reporting 2016-02-27 21:59:53 +02:00
sf.c
sta.c iwlwifi: mvm: kill iwl_mvm_enable_agg_txq 2016-02-27 22:00:16 +02:00
sta.h iwlwifi: mvm: remove unused field in iwl_mvm_tid_data 2016-02-27 22:00:10 +02:00
tdls.c
testmode.h
time-event.c iwlwifi: mvm: ROC: cleanup time event info on FW failure 2016-03-09 20:59:18 +02:00
time-event.h iwlwifi: mvm: extend time event duration 2016-03-07 13:34:16 +02:00
tof.c
tof.h
tt.c iwlwifi: mvm: return the cooling state index instead of the budget 2016-03-09 21:05:13 +02:00
tx.c iwlwifi: mvm: don't let NDPs mess the packet tracking 2016-03-09 20:59:20 +02:00
utils.c iwlwifi: mvm: adapt the firmware assert log to new firmware 2016-03-09 21:05:16 +02:00