]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: iwlwifi: dbg-tlv: ensure NUL termination
authorJohannes Berg <johannes.berg@intel.com>
Sun, 28 Jan 2024 06:53:53 +0000 (08:53 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:25 +0000 (18:19 -0400)
commit783d413f332a3ebec916664b366c28f58147f82c
treefef84d91042d8f44325c781a988010b3b5377eb4
parent70104eb71974ad36f10d5af8aab40e7d4983f30e
wifi: iwlwifi: dbg-tlv: ensure NUL termination

[ Upstream commit ea1d166fae14e05d49ffb0ea9fcd4658f8d3dcea ]

The iwl_fw_ini_debug_info_tlv is used as a string, so we must
ensure the string is terminated correctly before using it.

Fixes: a9248de42464 ("iwlwifi: dbg_ini: add TLV allocation new API support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240128084842.be15e858ee89.Ibff93429cf999eafc7b26f3eef4c055dc84984a0@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c