[PATCH 09/12] mesh: Fix segmentation fault by repeating MESH_GROUP_ADD/REMOVE
Bob Copeland
me
Tue Nov 4 05:57:42 PST 2014
On Tue, Nov 04, 2014 at 02:36:50PM +0900, Masashi Honma wrote:
> Signed-off-by: Natsuki Itaya <Natsuki.Itaya at jp.sony.com>
> Signed-off-by: Masashi Honma <masashi.honma at gmail.com>
I can reproduce this crash by doing two MESH_GROUP_ADD/REMOVE in
short succession?
> --- a/wpa_supplicant/events.c
> +++ b/wpa_supplicant/events.c
> @@ -3475,9 +3475,13 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
> #endif /* CONFIG_AP */
> break;
> case EVENT_NEW_PEER_CANDIDATE:
> +#ifdef CONFIG_MESH
> + if (!wpa_s->ifmsh || !data)
> + break;
> wpa_mesh_notify_peer(wpa_s, data->mesh_peer.peer,
> data->mesh_peer.ies,
> data->mesh_peer.ie_len);
> +#endif /* CONFIG_MESH */
> break;
> default:
> wpa_msg(wpa_s, MSG_INFO, "Unknown event %d", event);
--
Bob Copeland %% www.bobcopeland.com
More information about the Hostap
mailing list