linux/net/wireless/tests
Zichen Xie 8862714096 wifi: cfg80211: tests: Fix potential NULL dereference in test_cfg80211_parse_colocated_ap()
[ Upstream commit 13c4f7714c ]

kunit_kzalloc() may return NULL, dereferencing it without NULL check may
lead to NULL dereference.
Add a NULL check for ies.

Fixes: 45d43937a4 ("wifi: cfg80211: add a kunit test for 6 GHz colocated AP parsing")
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Link: https://patch.msgid.link/20241115063835.5888-1-zichenxie0106@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-02-08 09:57:02 +01:00
..
chan.c wifi: cfg80211: reject non-conformant 6 GHz center frequencies 2024-06-12 13:04:25 +02:00
fragmentation.c wifi: cfg80211: allow cfg80211_defragment_element() without output 2024-03-04 14:33:51 +01:00
Makefile wifi: cfg80211: simplify cfg80211_chandef_compatible() 2024-02-08 13:07:38 +01:00
module.c wifi: cfg80211: add first kunit tests, for element defrag 2023-09-11 12:32:16 +02:00
scan.c wifi: cfg80211: tests: Fix potential NULL dereference in test_cfg80211_parse_colocated_ap() 2025-02-08 09:57:02 +01:00
util.c wifi: cfg80211: tests: add some scanning related tests 2024-01-03 15:35:22 +01:00
util.h wifi: cfg80211: tests: add some scanning related tests 2024-01-03 15:35:22 +01:00