linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] mesh: Fix network information cleanup
@ 2019-04-18  4:13 Inga Stotland
  2019-04-19 16:09 ` Gix, Brian
  0 siblings, 1 reply; 2+ messages in thread
From: Inga Stotland @ 2019-04-18  4:13 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: brian.gix, johan.hedberg, luiz.dentz, Inga Stotland

This fixes issues caused by accessing invalidated entries of nets
queue that were left around when removing network info in
mesh_net_detach()
---
 mesh/net.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mesh/net.c b/mesh/net.c
index b173e1c09..9b1fbd81e 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -3120,6 +3120,7 @@ struct mesh_io *mesh_net_detach(struct mesh_net *net)
 	mesh_io_deregister_recv_cb(io, MESH_IO_FILTER_NET);
 
 	net->io = NULL;
+	l_queue_remove(nets, net);
 
 	return io;
 }
-- 
2.17.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-19 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-18  4:13 [PATCH BlueZ] mesh: Fix network information cleanup Inga Stotland
2019-04-19 16:09 ` Gix, Brian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).