]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
iwlwifi: mvm: fix possible memory leak
authorEytan Lifshitz <eytan.lifshitz@intel.com>
Wed, 18 Dec 2013 21:05:06 +0000 (23:05 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 31 Dec 2013 17:03:43 +0000 (19:03 +0200)
commita4a1247847ca9ae2fd96e0684a74acd551791000
treecc38d0e31242a3bdea3318b1f57bfac6623e0dce
parent3dd94794a9fb39c28eb60760ec90731144149ace
iwlwifi: mvm: fix possible memory leak

In case of invalid section_id, the function returns after
it aleready allocated memory. Fixed by change the order of actions.

Signed-off-by: Eytan Lifshitz <eytan.lifshitz@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/nvm.c