Skip to contentSkip to conversation

iwlwifi: actually check allocated conf_tlv pointer

PATCH In review Sedat Dilek 2 participants 5 messages Apr 17, 2020 – Apr 21, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 iwlwifi: actually check allocated conf_tlv pointer

From: Chris Rorvick <[email protected]>

Commit 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs") attempted to fix a typoe introduced by commit 17b809c9b22e ("iwlwifi: dbg: move debug data to a struct") but does not implement the check correctly.

Fixes 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs")
Tweeted-by @grsecurity

Message-Id: <[email protected]>

---
Changes v1->v2:
- Fix typo s/fw.dbg_conf_tlv/fw.dbg.conf_tlv
- Add Fixes tag as suggested by Kalle
- v2 on top of wireless-drivers.git as suggested by Kalle Changes v2->v3:
- Add Changelog

 drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/iwl-drv.c +1 -1
index ff52e69c1c80..eeb750bdbda1 100644
@@ -1467,7 +1467,7 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
 				kmemdup(pieces->dbg_conf_tlv[i],
 					pieces->dbg_conf_tlv_len[i],
 					GFP_KERNEL);
-			if (!pieces->dbg_conf_tlv[i])
+			if (!drv->fw.dbg.conf_tlv[i])
 				goto out_free_fw;
 		}
 	}
Signature · 1 line
2.26.1
#1 lore raw
Quoted 7 lines · Sedat Dilek

From: Chris Rorvick <[email protected]>

Commit 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs") attempted to fix a typoe introduced by commit 17b809c9b22e ("iwlwifi: dbg: move debug data to a struct") but does not implement the check correctly.

Quoted 5 lines
Fixes 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs")
Tweeted-by @grsecurity

Message-Id: <[email protected]>

Thanks, looks good to me. I'll just remove the Message-Id tag, it's not really needed in this case.

Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#2 lore raw
Quoted 10 lines · Kalle Valo
Quoted 7 lines · Sedat Dilek

From: Chris Rorvick <[email protected]>

Commit 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs") attempted to fix a typoe introduced by commit 17b809c9b22e ("iwlwifi: dbg: move debug data to a struct") but does not implement the check correctly.

Quoted 9 lines
Quoted 5 lines
Fixes 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs")
Tweeted-by @grsecurity

Message-Id: <[email protected]>

Thanks, looks good to me. I'll just remove the Message-Id tag, it's not really needed in this case.

Thanks for all your suggestions and taking care, Kalle.

- Sedat -

Quoted 2 lines

--
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

#3 lore raw
In reply to Sedat Dilek
Quoted 11 lines · Sedat Dilek

From: Chris Rorvick <[email protected]>

Commit 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs") attempted to fix a typoe introduced by commit 17b809c9b22e ("iwlwifi: dbg: move debug data to a struct") but does not implement the check correctly.

Fixes 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs")
Tweeted-by @grsecurity

Patch applied to wireless-drivers.git, thanks.

a176e114ace4 iwlwifi: actually check allocated conf_tlv pointer

Signature · 3 lines
https://patchwork.kernel.org/patch/11494331/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#4 lore raw
Quoted 10 lines · Kalle Valo
Quoted 7 lines · Sedat Dilek

From: Chris Rorvick <[email protected]>

Commit 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs") attempted to fix a typoe introduced by commit 17b809c9b22e ("iwlwifi: dbg: move debug data to a struct") but does not implement the check correctly.

Quoted 9 lines
Quoted 4 lines
Fixes 71bc0334a637 ("iwlwifi: check allocated pointer when allocating conf_tlvs")
Tweeted-by @grsecurity

Patch applied to wireless-drivers.git, thanks.

a176e114ace4 iwlwifi: actually check allocated conf_tlv pointer

Thanks, Sedat.

Quoted 4 lines

--
https://patchwork.kernel.org/patch/11494331/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches