mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 23:00:21 +00:00
wifi: iwlegacy: avoid fortify warning
There are two different alive messages, the "init" one is bigger than the other one, so we have a fortify read warn here. Avoid it by copying from the variable-sized 'raw' instead. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230216203444.134310-1-johannes@sipsolutions.net
This commit is contained in:
parent
d9fcf94b8f
commit
3a156b52c7
@ -4020,7 +4020,7 @@ il4965_hdl_alive(struct il_priv *il, struct il_rx_buf *rxb)
|
||||
|
||||
if (palive->ver_subtype == INITIALIZE_SUBTYPE) {
|
||||
D_INFO("Initialization Alive received.\n");
|
||||
memcpy(&il->card_alive_init, &pkt->u.alive_frame,
|
||||
memcpy(&il->card_alive_init, &pkt->u.raw,
|
||||
sizeof(struct il_init_alive_resp));
|
||||
pwork = &il->init_alive_start;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user