diff options
author | Emmanuel Grumbach | 2014-01-06 08:05:54 +0100 |
---|---|---|
committer | Emmanuel Grumbach | 2014-01-13 21:17:16 +0100 |
commit | 01e0efe3178dbeed1284e55b70a3160a279995b2 (patch) | |
tree | 991803c75137af5e3edfbc2e5a10bb17ce4ac7a2 /drivers/net | |
parent | iwlwifi: mvm: rs: fix a theoretical out of bounds access (diff) | |
download | kernel-qcow2-linux-01e0efe3178dbeed1284e55b70a3160a279995b2.tar.gz kernel-qcow2-linux-01e0efe3178dbeed1284e55b70a3160a279995b2.tar.xz kernel-qcow2-linux-01e0efe3178dbeed1284e55b70a3160a279995b2.zip |
iwlwifi: mvm: fix SRAM dump debugfs handler
If the length isn't set it means we want all the SRAM.
Also - this is perfectly valid to partially dump starting
at offset 0.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/iwlwifi/mvm/debugfs.c index 76cdce9edf55..369d4c90e669 100644 --- a/drivers/net/wireless/iwlwifi/mvm/debugfs.c +++ b/drivers/net/wireless/iwlwifi/mvm/debugfs.c @@ -135,7 +135,7 @@ static ssize_t iwl_dbgfs_sram_read(struct file *file, char __user *user_buf, ofs = img->sec[IWL_UCODE_SECTION_DATA].offset; len = img->sec[IWL_UCODE_SECTION_DATA].len; - if (!mvm->dbgfs_sram_offset && !mvm->dbgfs_sram_len) { + if (mvm->dbgfs_sram_len) { ofs = mvm->dbgfs_sram_offset; len = mvm->dbgfs_sram_len; } |