|
Loading...
|
connman@connman.net
[Prev] Thread [Next] | [Prev] Date [Next]
[PATCH v1 3/4] network: Remove device pointer in network_remove() Daniel Wagner Thu Apr 12 01:01:24 2012
From: Daniel Wagner <[EMAIL PROTECTED]>
It is necessary to assing the device pointer NULL before
calling disconnecting because the service state machine
could try to reconnect to this network.
In this case service refcounts inderectly the network object
and therefore the network object will never be destroyed.
The service state machine will ignore any invalid network
(network objects without a device pointer).
---
src/network.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/network.c b/src/network.c
index 3d5f6ef..600195a 100644
--- a/src/network.c
+++ b/src/network.c
@@ -187,6 +187,7 @@ static void network_remove(struct connman_network *network)
if (network->driver == NULL)
return;
+ network->device = NULL;
connman_network_set_connected(network, FALSE);
switch (network->type) {
--
1.7.10.rc3.1.gb3065
_______________________________________________
connman mailing list
[EMAIL PROTECTED]
http://lists.connman.net/listinfo/connman
- [PATCH v1 0/5] Fix removing of networks Daniel Wagner 2012/04/12
- [PATCH v1 1/4] network: Add __connman_network_is_valid() Daniel Wagner 2012/04/12
- [PATCH v1 2/5] network: Add __connman_network_is_valid() Daniel Wagner 2012/04/12
- [PATCH v1 1/5] service: Use hash table for lookup_from_network Daniel Wagner 2012/04/12
- [PATCH v1 2/4] service: Ignore invalid networks when reconnecting Daniel Wagner 2012/04/12
- [PATCH v1 3/5] service: Ignore invalid networks when reconnecting Daniel Wagner 2012/04/12
- [PATCH v1 3/4] network: Remove device pointer in network_remove() Daniel Wagner 2012/04/12 <=
- [PATCH v1 4/5] network: Remove device pointer in network_remove() Daniel Wagner 2012/04/12
- [PATCH v1 4/4] wifi: Refactor desctruction of network object Daniel Wagner 2012/04/12
- [PATCH v1 5/5] wifi: Refactor desctruction of network object Daniel Wagner 2012/04/12
- Re: [PATCH v1 0/5] Fix removing of networks Daniel Wagner 2012/04/12