OSDN Git Service

iwlwifi: mvm: fix nvm_data leak
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 3 May 2017 12:12:09 +0000 (15:12 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 23 Jun 2017 09:03:13 +0000 (12:03 +0300)
commit946af0079cd260546d3773e7ff5409f49949371d
tree6ef74a03e076cf5882f97236f3e3ee1e75eaef00
parent1dad3e0a313c42f8ade19f6987aedb857c4d07d0
iwlwifi: mvm: fix nvm_data leak

We allocate nvm_data in iwl_mvm_nvm_get_from_fw().  If something goes
wrong after the allocation (i.e. if no valid MAC address is valid), we
should free nvm_data before returning an error.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c