]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: mac80211_hwsim: Fix possible NULL dereference
authorIlan Peer <ilan.peer@intel.com>
Sun, 4 Jun 2023 09:11:27 +0000 (12:11 +0300)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:20:35 +0000 (17:20 +0200)
commitf3f4a2b6a2368b81d45ee866a85163af843f97e3
tree9f765c245872c8212fa886bfcb13d491f71495cc
parent7a4d0abb1899e802e07a50a53e848797e3d64ecb
wifi: mac80211_hwsim: Fix possible NULL dereference

BugLink: https://bugs.launchpad.net/bugs/2037005
[ Upstream commit 0cc80943ef518a1c51a1111e9346d1daf11dd545 ]

In a call to mac80211_hwsim_select_tx_link() the sta pointer might
be NULL, thus need to check that it is not NULL before accessing it.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230604120651.f4d889fc98c4.Iae85f527ed245a37637a874bb8b8c83d79812512@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
drivers/net/wireless/mac80211_hwsim.c