From c09e944416d76ed162efc55483f987cd537c2c8b Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Wed, 30 Jul 2014 10:56:29 +0000 Subject: 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 --- device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.c b/device.c index b16f156..26b020f 100644 --- a/device.c +++ b/device.c @@ -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); } -- cgit v1.2.3