device: Reorder cleanup
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 25 Jul 2011 14:24:35 +0000 (16:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 25 Jul 2011 23:22:51 +0000 (01:22 +0200)
commitba045ac4c9bf8d84d9ec2679be505bb51d098ab6
treea63b31f7bee8d40fd29483ac25093342a26cc2cf
parent52c76529ae6f1aca786111e9343b75d5535097c1
device: Reorder cleanup

If free_network is called before the driver->disable() callback
the device has been removed from the networking structure.
src/device.c