Skip to content

Commit 2a4e01e

Browse files
committed
wifi: mac80211_hwsim: init peer measurement result
If we don't get all the values here, we might pass them to cfg80211 uninitialized. Fix that, even if the input might then not make much sense. Fixes: 2af3b2a ("mac80211_hwsim: add PMSR report support via virtio") Reviewed-by: Miriam Rachel Korenblit <[email protected]> Link: https://msgid.link/20240418105220.e1317621c1f9.If7dd447de24d7493d133284db5e9e482e4e299f8@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 801ea33 commit 2a4e01e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/virtual/mac80211_hwsim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3899,7 +3899,7 @@ static int hwsim_pmsr_report_nl(struct sk_buff *msg, struct genl_info *info)
38993899
}
39003900

39013901
nla_for_each_nested(peer, peers, rem) {
3902-
struct cfg80211_pmsr_result result;
3902+
struct cfg80211_pmsr_result result = {};
39033903

39043904
err = mac80211_hwsim_parse_pmsr_result(peer, &result, info);
39053905
if (err)

0 commit comments

Comments
 (0)