mirror_ubuntu-kernels/drivers/net/wireless/intel/iwlwifi/fw
Johannes Berg 0f892441d8 iwlwifi: pnvm: don't kmemdup() more than we have
We shouldn't kmemdup() more data than we have, that might
cause the code to crash. Fix that by updating the length
before the kmemdup.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20211016114029.ab0e64c3fba9.Ic6a3295fc384750b51b4270bf0b7d94984a139f2@changeid
2021-10-20 12:31:24 +03:00
..
api iwlwifi: mvm: introduce iwl_stored_beacon_notif_v3 2021-08-26 23:38:17 +03:00
acpi.c iwlwifi: acpi: fill in SAR tables with defaults 2021-08-26 23:37:05 +03:00
acpi.h iwlwifi: acpi: support reading and storing WGDS revision 2 2021-08-26 23:36:10 +03:00
dbg.c iwlwifi: yoyo: support for new DBGI_SRAM region 2021-08-26 23:37:07 +03:00
dbg.h iwlwifi: prepare for synchronous error dumps 2021-08-26 23:32:21 +03:00
debugfs.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
dump.c iwlwifi: fw: dump TCM error table if present 2021-06-22 16:57:57 +03:00
error-dump.h iwlwifi: fw: fix debug dump data declarations 2021-08-26 23:37:06 +03:00
file.h iwlwifi: mvm: Add support for hidden network scan on 6GHz band 2021-08-26 23:32:22 +03:00
img.c iwlwifi: fw: add default value for iwl_fw_lookup_cmd_ver 2020-10-01 21:59:37 +03:00
img.h iwlwifi: mvm: umac error table mismatch 2021-04-14 12:07:19 +03:00
init.c iwlwifi: move iwl_configure_rxq to be used by other op_modes 2021-04-14 12:07:17 +03:00
notif-wait.c iwlwifi: fw: fix notification wait locking 2021-04-06 13:25:59 +03:00
notif-wait.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
paging.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
pnvm.c iwlwifi: pnvm: don't kmemdup() more than we have 2021-10-20 12:31:24 +03:00
pnvm.h iwlwifi: move get pnvm file name to a separate function 2021-08-26 23:38:16 +03:00
runtime.h iwlwifi: move iwl_configure_rxq to be used by other op_modes 2021-04-14 12:07:17 +03:00
smem.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
uefi.c iwlwifi: fix printk format warnings in uefi.c 2021-09-06 13:03:06 +03:00
uefi.h iwlwifi: support loading the reduced power table from UEFI 2021-06-22 16:57:57 +03:00