From: Johannes Berg <johannes.berg@xxxxxxxxx> ifxes=Ic930239af4832ecb04afbf92840c99dfd726eebe Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> Signed-off-by: Luca Coelho <luciano.coelho@xxxxxxxxx> --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c index cc4627d27602..ce77ed17ede0 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c @@ -2379,8 +2379,7 @@ int iwl_fw_dbg_ini_collect(struct iwl_fw_runtime *fwrt, test_and_set_bit(fwrt->dump.wks[idx].idx, &fwrt->dump.active_wks)) return -EBUSY; - memcpy(&fwrt->dump.wks[idx].dump_data, dump_data, - sizeof(fwrt->dump.wks[idx].dump_data)); + fwrt->dump.wks[idx].dump_data = *dump_data; IWL_WARN(fwrt, "WRT: Collecting data: ini trigger %d fired.\n", tp_id); -- 2.23.0