]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4/fib: don't warn when primary address is missing if in_dev is dead
authorPaolo Abeni <pabeni@redhat.com>
Thu, 21 Apr 2016 20:23:31 +0000 (22:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2016 03:26:29 +0000 (23:26 -0400)
commit63a1ddb597597daaa9af520b9a67c2097db17da8
tree30e7777eb40f60ec5c2b208d14d10137d5f0c806
parent06a397cf440822319f0564bd3694a1892562bf07
ipv4/fib: don't warn when primary address is missing if in_dev is dead

After commit a7453721fdbb ("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@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_frontend.c