mesh: Fix network information cleanup
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
@@ -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
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@@ -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; }