I saw wireless-testing kernel crash at nl80211 survey_dump function. we can see this crash only when run wpa_supplicant of hostap dev branch. This patch is fix for it. Signed-off-by: Mahesh Palivela <maheshp@xxxxxxxxxxx> --- net/wireless/nl80211.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 7ae54b8..3554c53 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4515,6 +4515,8 @@ static int nl80211_dump_survey(struct sk_buff *skb, while (1) { struct ieee80211_channel *chan; + memset(&survey, 0, sizeof(struct survey_info)); + res = dev->ops->dump_survey(&dev->wiphy, netdev, survey_idx, &survey); if (res == -ENOENT)-- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html