aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv6/route.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index ff5affe2636c..41c5905d3191 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1223,6 +1223,9 @@ int ip6_del_rt(struct rt6_info *rt, struct nlmsghdr *nlh, void *_rtattr, struct
1223 int err; 1223 int err;
1224 struct fib6_table *table; 1224 struct fib6_table *table;
1225 1225
1226 if (rt == &ip6_null_entry)
1227 return -ENOENT;
1228
1226 table = rt->rt6i_table; 1229 table = rt->rt6i_table;
1227 write_lock_bh(&table->tb6_lock); 1230 write_lock_bh(&table->tb6_lock);
1228 1231