projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
560843f
)
iwlwifi: mvm: fix SRAM dump debugfs handler
author
Emmanuel Grumbach
<
[email protected]
>
Mon, 6 Jan 2014 07:05:54 +0000
(09:05 +0200)
committer
Emmanuel Grumbach
<
[email protected]
>
Mon, 13 Jan 2014 20:17:16 +0000
(22:17 +0200)
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 <
[email protected]
>
drivers/net/wireless/iwlwifi/mvm/debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/mvm/debugfs.c
b/drivers/net/wireless/iwlwifi/mvm/debugfs.c
index 76cdce9edf55de251eebf46b30d5d605de0cc250..369d4c90e669020a6fbb924122e2691247e54d7b 100644
(file)
--- 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;
}