iwlwifi: mvm: fix possible memory leak
authorEytan Lifshitz <[email protected]>
Wed, 18 Dec 2013 21:05:06 +0000 (23:05 +0200)
committerEmmanuel Grumbach <[email protected]>
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 <[email protected]>
Reviewed-by: Johannes Berg <[email protected]>
Signed-off-by: Emmanuel Grumbach <[email protected]>
drivers/net/wireless/iwlwifi/mvm/nvm.c