fix duplicate device release on interface down
authorFelix Fietkau <nbd@openwrt.org>
Sun, 3 Apr 2011 17:10:15 +0000 (19:10 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 3 Apr 2011 17:10:15 +0000 (19:10 +0200)
interface.c

index a947cf6c7c5173f772260f8640fd389f61e56ca3..823a06f16dab02bb88315ef21f8e7064ade9ed8d 100644 (file)
@@ -104,7 +104,6 @@ __set_interface_down(struct interface *iface, bool force)
        interface_event(iface, IFEV_DOWN);
 
        interface_proto_event(iface->proto, PROTO_CMD_TEARDOWN, force);
-       release_device(iface->main_dev.dev);
 }
 
 static void