Commit 95fa8274 authored by Christian Ehrhardt's avatar Christian Ehrhardt Committed by David S. Miller

[IPV4]: Do not try to unhash null-netdev nexthops.

Signed-off-by: default avatarChristian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 03f4fafe
......@@ -163,6 +163,8 @@ void fib_release_info(struct fib_info *fi)
if (fi->fib_prefsrc)
hlist_del(&fi->fib_lhash);
change_nexthops(fi) {
if (!nh->nh_dev)
continue;
hlist_del(&nh->nh_hash);
} endfor_nexthops(fi)
fi->fib_dead = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment