iwlwifi: dbg_ini: in case of region dump failure set memory to 0
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Sun, 10 Feb 2019 07:37:22 +0000 (09:37 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Mar 2019 10:49:03 +0000 (12:49 +0200)
commit8625794e363946d153c5bc57ed30ab7616a9995a
tree5ef753f724e6bdd92fc3d13520dbcb22acfaca1e
parentd1967ce641772dd5e27b2a7a97fd625700cc589c
iwlwifi: dbg_ini: in case of region dump failure set memory to 0

In case the driver fails to dump a memory region, and this is the last
region, then partial region would be extracted.

Solve this by setting the data to zero in case of failure.
This will cause dump to be a list of consecutive successful memory
regions and trailing zeros with no partial memories extracted.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c