]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: nvm: free old section data when reading nvm file
authorMoshe Harel <moshe.harel@intel.com>
Thu, 10 Sep 2015 12:29:09 +0000 (15:29 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 25 Oct 2015 11:45:09 +0000 (13:45 +0200)
commitd3814f1375659f6ceae1ad8b0bf7cbf514336360
tree0f818d3d820118048bbae803e9e980326a28f55a
parent399881c8322689e7e7dcb50a346324e4808544b3
iwlwifi: nvm: free old section data when reading nvm file

When reading external NVM file, if a section exists both in OTP
and in the external file, the memory that was allocated at OTP
reading is not freed.
This is possible only on systems that have an external NVM
file which is typically the case on embedded systems.

Signed-off-by: Moshe Harel <moshe.harel@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/nvm.c