diff options
author | Johannes Berg <johannes.berg@intel.com> | 2023-03-01 12:09:29 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-03-10 11:46:22 +0100 |
commit | f624bb6fad23df3270580b4fcef415c6e7bf7705 (patch) | |
tree | 331684e004dc63232cc9cf0485a1e02395121b19 /net/core | |
parent | 44889ba56cbb3d51154660ccd15818bc77276696 (diff) |
wifi: nl80211: fix NULL-ptr deref in offchan check
If, e.g. in AP mode, the link was already created by userspace
but not activated yet, it has a chandef but the chandef isn't
valid and has no channel. Check for this and ignore this link.
Fixes: 7b0a0e3c3a88 ("wifi: cfg80211: do some rework towards MLO link APIs")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230301115906.71bd4803fbb9.Iee39c0f6c2d3a59a8227674dc55d52e38b1090cf@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions