iwlwifi: Use struct_size() in kzalloc
authorYueHaibing <yuehaibing@huawei.com>
Tue, 29 Jan 2019 03:21:44 +0000 (11:21 +0800)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Mar 2019 10:59:42 +0000 (12:59 +0200)
commit78d722b1bdd96b31bbe886a2cb2e69ce7b350347
tree407123523d047ddcd446cc456e9606177988b391
parent4b49e34e580c87ea84f8f57fd04a1165219eb3fc
iwlwifi: Use struct_size() in kzalloc

Use struct_size() in kzalloc instead of the 'regd_to_copy'

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c