projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9fcf94
)
wifi: iwlegacy: avoid fortify warning
author
Johannes Berg
<johannes.berg@intel.com>
Thu, 16 Feb 2023 20:34:44 +0000
(21:34 +0100)
committer
Kalle Valo
<kvalo@kernel.org>
Fri, 17 Feb 2023 09:35:54 +0000
(11:35 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/intel/iwlegacy/4965-mac.c
b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
index
4d3c544
..
0a4aa3c
100644
(file)
--- a/
drivers/net/wireless/intel/iwlegacy/4965-mac.c
+++ b/
drivers/net/wireless/intel/iwlegacy/4965-mac.c
@@
-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 {