Eric Dumazet e14a599335 net: dev_close() should check IFF_UP
Commit 443457242beb (factorize sync-rcu call in
unregister_netdevice_many) mistakenly removed one test from dev_close()

Following actions trigger a BUG :

modprobe bonding
modprobe dummy
ifconfig bond0 up
ifenslave bond0 dummy0
rmmod dummy

dev_close() must not close a non IFF_UP device.

With help from Frank Blaschka and Einar EL Lueck

Reported-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Reported-by: Einar EL Lueck <ELELUECK@de.ibm.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-05-10 15:03:33 -07:00
..
2011-05-10 15:03:33 -07:00
2011-02-17 15:44:00 -08:00
2011-03-31 11:26:23 -03:00
2010-07-12 12:57:55 -07:00
2011-03-31 11:26:23 -03:00
2011-01-20 16:59:34 -08:00
2010-10-25 14:18:27 -07:00
2010-11-28 18:24:14 -08:00
2010-07-12 12:57:55 -07:00
2011-03-22 17:44:01 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-10-25 14:18:27 -07:00
2010-09-23 14:33:39 -07:00