Thread (1 message) 1 message, 1 author, 2013-03-07

Re: kernel panic in fib6_age (linux-3.6.6) and sugguested fix

From: Zhouyi Zhou <hidden>
Date: 2013-03-07 06:58:42

How about this one below? without modifying the return value:
                        __u8 neigh_flags = 0;


                        neigh = dst_neigh_lookup(&rt->dst,
&rt->rt6i_gateway);
-                       if (neigh) {
+                       if (!IS_ERR(neigh)) {

                                neigh_flags = neigh->flags;
                                neigh_release(neigh);
                        }
you are correct, this one avoid breaking out of the process of the fib
table traveling

Zhouyi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help