]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: nl80211: remove redundant null pointer check in coalescing
authorDmitry Kandybka <d.kandybka@gmail.com>
Thu, 3 Oct 2024 09:59:12 +0000 (12:59 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 8 Oct 2024 19:52:15 +0000 (21:52 +0200)
commit484bd64bdc2721224e90e131607398e546cf84b1
tree3b7246151fe58f71fcea397cae01b6a3a20354d4
parentb0b6646a9d680c1d865ef308d84de98e28df9963
wifi: nl80211: remove redundant null pointer check in coalescing

In 'cfg80211_free_coalesce', '&coalesce->rules[i]' is a pointer
to VLA member of 'struct cfg80211_coalesce' and should never be NULL,
so redundant check may be dropped.

I think this is correct, but I haven't tested it seriously.
Compile tested only.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Dmitry Kandybka <d.kandybka@gmail.com>
Link: https://patch.msgid.link/20241003095912.218465-1-d.kandybka@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c