iwlwifi: alloc memory dynamically also for DVM
authorSara Sharon <sara.sharon@intel.com>
Mon, 30 Jan 2017 10:34:32 +0000 (12:34 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jan 2017 07:10:24 +0000 (09:10 +0200)
commitd546530e569463a7f0a4ead482d277b5ef42a3aa
treec4a60c65438d6b5a4af45e21ad9fc591e40bcc45
parent33e962c8871f015f5c8978384553dddcf5b81b22
iwlwifi: alloc memory dynamically also for DVM

For old firmwares the memory wasn't allocated, resulting in panic.
Make it dynamically allocated as well. Allow any order of functions
call.

Fixes: eef187a7b8a1 ("iwlwifi: enlarge number of ucode sections")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Tested-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlwifi/iwl-drv.c