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

From: David Miller
Date: Sun Apr 24 2016 - 23:27:06 EST


From: Paolo Abeni <pabeni@xxxxxxxxxx>
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 safe, but triggers some "bug: prim == NULL" warnings.
>
> This commit avoids warning if the in_dev is dead
>
> Signed-off-by: Paolo Abeni <pabeni@xxxxxxxxxx>

Applied, thank you.