Re: [PATCH net] ipv4/fib: don't warn when primary address is missing if in_dev is dead

2016-04-24 Thread David Miller
From: Paolo Abeni Date: Thu, 21 Apr 2016 22:23:31 +0200 > After commit fbd40ea0180a ("ipv4: Don't do expensive useless work > during inetdev destroy.") when deleting an interface, > fib_del_ifaddr() can be executed without any primary address > present on the dead interface. > > The above is saf

[PATCH net] ipv4/fib: don't warn when primary address is missing if in_dev is dead

2016-04-21 Thread Paolo Abeni
After commit fbd40ea0180a ("ipv4: Don't do expensive useless work during inetdev destroy.") when deleting an interface, fib_del_ifaddr() can be executed without any primary address present on the dead interface. The above is safe, but triggers some "bug: prim == NULL" warnings. This commit avoids