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:
ffa7026
)
iwlwifi: mvm: fix possible memory leak
author
Eytan Lifshitz
<
[email protected]
>
Tue, 18 Feb 2014 13:02:29 +0000
(15:02 +0200)
committer
Emmanuel Grumbach
<
[email protected]
>
Thu, 20 Feb 2014 17:18:04 +0000
(19:18 +0200)
iwl_parse_nvm_data() doesn't free allocated memory if it is
fed with invalid parameter. Fix this.
Signed-off-by: Eytan Lifshitz <
[email protected]
>
Signed-off-by: Emmanuel Grumbach <
[email protected]
>
drivers/net/wireless/iwlwifi/iwl-nvm-parse.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/iwl-nvm-parse.c
b/drivers/net/wireless/iwlwifi/iwl-nvm-parse.c
index df3ea60c87d9a127af2bae7bcbbd1113aed636ad..80c40967cd35602d35383ed34c25f57c04330272 100644
(file)
--- a/
drivers/net/wireless/iwlwifi/iwl-nvm-parse.c
+++ b/
drivers/net/wireless/iwlwifi/iwl-nvm-parse.c
@@
-516,6
+516,7
@@
iwl_parse_nvm_data(struct device *dev, const struct iwl_cfg *cfg,
if (!nvm_calib) {
IWL_ERR_DEV(dev,
"Can't parse empty Calib NVM sections\n");
+ kfree(data);
return NULL;
}
/* in family 8000 Xtal calibration values moved to OTP */