aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/neighbour.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 6ba1cdea18e8..0c8666872d10 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -586,8 +586,8 @@ void neigh_destroy(struct neighbour *neigh)
586 kfree(hh); 586 kfree(hh);
587 } 587 }
588 588
589 if (neigh->ops && neigh->ops->destructor) 589 if (neigh->parms->neigh_destructor)
590 (neigh->ops->destructor)(neigh); 590 (neigh->parms->neigh_destructor)(neigh);
591 591
592 skb_queue_purge(&neigh->arp_queue); 592 skb_queue_purge(&neigh->arp_queue);
593 593