From: Herbert Xu Date: Sun, 23 Oct 2005 06:11:39 +0000 (+1000) Subject: [NEIGH] Print stack trace in neigh_add_timer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=203755029e063066ecc4cf5eee1110ab946c2d88;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [NEIGH] Print stack trace in neigh_add_timer Stack traces are very helpful in determining the exact nature of a bug. So let's print a stack trace when the timer is added twice. Signed-off-by: Herbert Xu --- diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 4128fc76ac3a..766caa0dd930 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -732,6 +732,7 @@ static inline void neigh_add_timer(struct neighbour *n, unsigned long when) if (unlikely(mod_timer(&n->timer, when))) { printk("NEIGH: BUG, double timer add, state is %x\n", n->nud_state); + dump_stack(); } }