ifplugd: if SIOCSIFFLAGS fails with ENODEV, don't die
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 16 Aug 2016 18:39:52 +0000 (20:39 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 16 Aug 2016 18:39:52 +0000 (20:39 +0200)
commitb11be131b73fd47e12b1a9f1c52ac0a1ed222aee
tree54f66073eba3ce1bd4e9d20d3e4fbc1fe1bc7248
parent110c6bb413ff7363e9b453edef8ae11cf7b64404
ifplugd: if SIOCSIFFLAGS fails with ENODEV, don't die

Some user managed to hit a race where iface is gone between SIOCGIFFLAGS
and SIOCSIFFLAGS (!). If SIOCSIFFLAGS fails, treat it the same as failed
SIOCGIFFLAGS

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ifplugd.c