iwlwifi: memcpy from dev_cmd and not dev_cmd->hdr
authorLiad Kaufman <liad.kaufman@intel.com>
Mon, 22 Oct 2018 07:12:28 +0000 (10:12 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 25 Jan 2019 18:57:21 +0000 (20:57 +0200)
commitc1f33442976b52676aa8b5ee9140b0b85bb4bd75
tree475d07071fd3511e8fc1e3129ea93008a0812f4b
parent162b22c93e66530405d793a830f75da3fc48ed31
iwlwifi: memcpy from dev_cmd and not dev_cmd->hdr

Klocwork complains about copying from dev_cmd->hdr if
copying more than 4 bytes since it means part of the
copy is from the next field. This isn't a real bug,
but for not failing Klocwork next time - fix this.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c
drivers/net/wireless/intel/iwlwifi/pcie/tx.c