diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-drv.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-drv.c b/drivers/net/wireless/iwlwifi/iwl-drv.c index fa12f73cd509..da4d85a32d31 100644 --- a/drivers/net/wireless/iwlwifi/iwl-drv.c +++ b/drivers/net/wireless/iwlwifi/iwl-drv.c | |||
@@ -284,6 +284,7 @@ static int iwl_store_ucode_sec(struct iwl_firmware_pieces *pieces, | |||
284 | 284 | ||
285 | sec->offset = le32_to_cpu(sec_parse->offset); | 285 | sec->offset = le32_to_cpu(sec_parse->offset); |
286 | sec->data = sec_parse->data; | 286 | sec->data = sec_parse->data; |
287 | sec->size = size - sizeof(sec_parse->offset); | ||
287 | 288 | ||
288 | ++img->sec_counter; | 289 | ++img->sec_counter; |
289 | 290 | ||