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:
65b3034
)
iwlwifi: mvm: fix theoretical uninitialized function return value
author
Eytan Lifshitz
<
[email protected]
>
Tue, 7 Jan 2014 10:50:45 +0000
(12:50 +0200)
committer
Emmanuel Grumbach
<
[email protected]
>
Mon, 13 Jan 2014 20:17:20 +0000
(22:17 +0200)
If we try to write NVM that do not exist, the function will return
uninitialized value. fixed.
Signed-off-by: Eytan Lifshitz <
[email protected]
>
Reviewed-by: Johannes Berg <
[email protected]
>
Signed-off-by: Emmanuel Grumbach <
[email protected]
>
drivers/net/wireless/iwlwifi/mvm/nvm.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/mvm/nvm.c
b/drivers/net/wireless/iwlwifi/mvm/nvm.c
index 9affd43db81184c2e0b06c28db7d3b0e8fbcde62..35b71af78d029d90311b878f640f84c38b9d331d 100644
(file)
--- a/
drivers/net/wireless/iwlwifi/mvm/nvm.c
+++ b/
drivers/net/wireless/iwlwifi/mvm/nvm.c
@@
-392,7
+392,7
@@
out:
/* Loads the NVM data stored in mvm->nvm_sections into the NIC */
int iwl_mvm_load_nvm_to_nic(struct iwl_mvm *mvm)
{
- int i, ret;
+ int i, ret
= 0
;
struct iwl_nvm_section *sections = mvm->nvm_sections;
IWL_DEBUG_EEPROM(mvm->trans->dev, "'Write to NVM\n");