]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: iwlwifi: pcie: avoid a NULL pointer dereference
authorAvraham Stern <avraham.stern@intel.com>
Thu, 7 Dec 2023 02:50:17 +0000 (04:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:50:08 +0000 (11:50 +0100)
commit31fbbc809c9ec379cdcba7a4963da812e21d3c85
tree34ddb72a43b4223a25cf1345be5676a05d87ba13
parent05d268e2e4ad1b3736a1c2eced6415f63b476f11
wifi: iwlwifi: pcie: avoid a NULL pointer dereference

[ Upstream commit ce038edfce43fb345f8dfdca0f7b17f535896701 ]

It possible that while the rx rb is being handled, the transport has
been stopped and re-started. In this case the tx queue pointer is not
yet initialized, which will lead to a NULL pointer dereference.
Fix it.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20231207044813.cd0898cafd89.I0b84daae753ba9612092bf383f5c6f761446e964@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c