Skip to contentSkip to conversation

mesh: Fix network information cleanup

PATCH In review Inga Stotland 2 participants 2 messages Apr 18, 2019 – Apr 19, 2019 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mesh: Fix network information cleanup

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(+)
mesh/net.c +1 -0
index b173e1c09..9b1fbd81e 100644
@@ -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;
 }
Signature · 1 line
2.17.2
#1 lore raw

Patch Applied

Quoted 19 lines · 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(+)
mesh/net.c +1 -0
index b173e1c09..9b1fbd81e 100644
@@ -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;
 }