iwlwifi: actually check allocated conf_tlv pointer
Subsystems (3)
PATCH v2 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]>
Signed-off-by Chris Rorvick <[email protected]>
Signed-off-by Sedat Dilek <[email protected]>
--- 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
@@ -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