mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-03 15:55:38 +00:00
staging: wilc1000: use correct data for memcpy in wilc_hif_pack_sta_param()
Use correct data for memcpy in wilc_hif_pack_sta_param(). Its reported by Smatch static code analyser tool as discussed in [1]. [1]. https://lore.kernel.org/linux-wireless/20200302092346.GA24308@kadam/ Suggested-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Link: https://lore.kernel.org/r/20200302162226.4196-2-ajay.kathat@microchip.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7db73c8c90
commit
efabc44b80
1 changed files with 1 additions and 1 deletions
|
@ -801,7 +801,7 @@ static void wilc_hif_pack_sta_param(u8 *cur_byte, const u8 *mac,
|
|||
|
||||
if (params->ht_capa) {
|
||||
*cur_byte++ = true;
|
||||
memcpy(cur_byte, ¶ms->ht_capa,
|
||||
memcpy(cur_byte, params->ht_capa,
|
||||
sizeof(struct ieee80211_ht_cap));
|
||||
} else {
|
||||
*cur_byte++ = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue