]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
iwlwifi: pcie: fix context info freeing
authorJohannes Berg <johannes.berg@intel.com>
Fri, 18 Jun 2021 08:01:17 +0000 (11:01 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:46:45 +0000 (09:46 +0200)
commit166359a6c5dbce0bb54240d0f9866afb5d83047d
treef6b24ead9020eb00acb25491932315d215ae9cae
parentf5327f59026b03bfb3bf40dcdd9cbad05378b156
iwlwifi: pcie: fix context info freeing

BugLink: https://bugs.launchpad.net/bugs/1938713
[ Upstream commit 26d18c75a7496c4c52b0b6789e713dc76ebfbc87 ]

After firmware alive, iwl_trans_pcie_gen2_fw_alive() is called
to free the context info. However, on gen3 that will then free
the context info with the wrong size.

Since we free this allocation later, let it stick around until
the device is stopped for now, freeing some of it earlier is a
separate change.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210618105614.afb63fb8cbc1.If4968db8e09f4ce2a1d27a6d750bca3d132d7d70@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c