diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2014-07-30 10:56:29 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-07-30 15:21:55 +0200 |
commit | c09e944416d76ed162efc55483f987cd537c2c8b (patch) | |
tree | 5def42f96f840b71e1c5cf7c491e5db08cdf2180 /device.c | |
parent | 4bf89afc22b43d5bd155d32d3998348a77179c1a (diff) |
netifd: Set device down based on being a non external device in device_release
Line up the device state manipulation by checking the external device parameter consistent and not the hotplug device parameter
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -254,7 +254,7 @@ void device_release(struct device_user *dep) return; device_broadcast_event(dev, DEV_EVENT_TEARDOWN); - if (!dep->hotplug) + if (!dev->external) dev->set_state(dev, false); device_broadcast_event(dev, DEV_EVENT_DOWN); } |