]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iwlwifi: yoyo: Avoid using dram data if allocation failed
authorMukesh Sisodiya <mukesh.sisodiya@intel.com>
Fri, 4 Feb 2022 10:25:01 +0000 (12:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:08 +0000 (13:58 +0200)
commitea6720f2b3165d7bb482740a8efd6e884c9ade62
tree065a9f1b36fffd6c774f8ecb333e0f905977373e
parent12a4b0563e5c298ebe179633cd2a3444a3a4a810
iwlwifi: yoyo: Avoid using dram data if allocation failed

[ Upstream commit e2d53d10ef666859517360e711fd7761e7e984ce ]

The config set TLV setting depend on dram allocation
and if allocation failed the data used in config set tlv
should not set this.
Adding the check if dram fragment is available or not.

Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com>
Fixes: 1a5daead217c ("iwlwifi: yoyo: support for ROM usniffer")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20220204122220.44835d181528.I3e78ba29c13bbeada017fcb2a620f3552c1dfa30@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c