]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: use a C99 initializer in wiphy_register
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 10 Nov 2025 12:03:15 +0000 (14:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Nov 2025 10:04:38 +0000 (11:04 +0100)
commit706edca67984faa3d83e397334fa5ec4190f63ba
treed1e1f8dddce08ea109e664f9ece5fe6c4df123e0
parent473235677af46ecb167917887586646e9d70d9ff
wifi: cfg80211: use a C99 initializer in wiphy_register

struct regulatory request was not fully initialized. While this is not
really a big deal because nl80211_send_reg_change_event doesn't look at
the other fields, it still makes sense to zero all the other fields as
Coverity suggests.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20251110140230.f8d4fcb1328b.I87170b1caef04356809838e684c9499f5806e624@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c