ifupdown: remove interface from state_list if iface_up fails
authorLauri Hintsala <lauri.hintsala@bluegiga.com>
Wed, 14 Dec 2011 14:49:58 +0000 (16:49 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 15 Dec 2011 11:33:39 +0000 (12:33 +0100)
commit454fe29a802f5f32b802df1a54324946d0b87669
treeddb2d1f8cf0e268cb37ed41bc3f821ea75414be4
parent1b41b33be34305e75eb8998f408f79193d7241e5
ifupdown: remove interface from state_list if iface_up fails

Fix the issue where interface is set to the configured state even if
configuration has failed. Add error check to state setting logic.

Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ifupdown.c