wifi: iwlegacy: avoid fortify warning
authorJohannes Berg <johannes.berg@intel.com>
Thu, 16 Feb 2023 20:34:44 +0000 (21:34 +0100)
committerKalle Valo <kvalo@kernel.org>
Fri, 17 Feb 2023 09:35:54 +0000 (11:35 +0200)
commit3a156b52c73c9491441799bbbac18075bf96480e
tree8553b47562045b4b05194fe805dc0ecef7f88c94
parentd9fcf94b8f68f4a0b440d26a1143932525c2f3dd
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
drivers/net/wireless/intel/iwlegacy/4965-mac.c