Set network->device as NULL when the device is removed
authorMartin Xu <martin.xu@intel.com>
Tue, 23 Mar 2010 03:43:50 +0000 (11:43 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 23 Mar 2010 11:05:52 +0000 (12:05 +0100)
commit449a6aa318165cc8e39ced502a221ee16bbb2abb
treeae943dab4ce5f4629fb3b006927321b112405e0c
parent678e15dba2930464631ddca47b42a9d8473b1175
Set network->device as NULL when the device is removed

oFono plugin can use network->device to decide whether the modem is
removed during active PrimaryContext.
That fixes a segmentation fault when removing a 3G modem before getting
the set_network_active() D-Bus reply.
plugins/ofono.c
src/device.c
src/network.c