linux/drivers/net/wireless/intel/iwlwifi/fw
Shahar S Matityahu b05d57c9b6 iwlwifi: dbg_ini: fix bad dump size calculation
The driver initiates the size value with the size of the struct and then
adds the size of the data and checks if the size is zero so size can not
be equal to zero.

Solve this by getting the data size, check that it is not equal to zero
and only then add the struct size.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: 7a14c23dcd ("iwlwifi: dbg: dump data according to the new ini TLVs")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-03-22 12:49:04 +02:00
..
api wireless-drivers-next patches for 5.1 2019-02-22 12:56:24 -08:00
acpi.c iwlwifi: mvm: add support for 32kHz external clock indication 2019-02-14 11:29:47 +02:00
acpi.h iwlwifi: mvm: add support for 32kHz external clock indication 2019-02-14 11:29:47 +02:00
dbg.c iwlwifi: dbg_ini: fix bad dump size calculation 2019-03-22 12:49:04 +02:00
dbg.h iwlwifi: dbg_ini: enable ignore consecutive trigger feature 2019-02-14 11:29:51 +02:00
debugfs.c iwlwifi: fw: no need to check return value of debugfs_create functions 2019-02-20 20:47:56 +02:00
debugfs.h iwlwifi: fw: no need to check return value of debugfs_create functions 2019-02-20 20:47:56 +02:00
error-dump.h iwlwifi: dbg_ini: implement Rx fifos dump 2019-02-20 20:48:01 +02:00
file.h iwlwifi: mvm: add support for new FTM fw API 2019-02-14 11:29:49 +02:00
img.h iwlwifi: add FW recovery flow 2019-02-14 11:29:45 +02:00
init.c iwlwifi: Fix pre operational dumping flows 2019-02-04 12:27:19 +02:00
notif-wait.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
notif-wait.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
paging.c iwlwifi: fw: combine loading of last page block into main copy loop 2018-04-26 15:18:07 +03:00
runtime.h iwlwifi: dbg_ini: implement Tx fifos dump 2019-02-20 20:48:01 +02:00
smem.c iwlwifi: introduce device family 22560 2018-07-26 13:16:14 +03:00