diff options
-rw-r--r-- | net/core/neighbour.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index c52df858d0be..cd3af59b38a1 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -481,6 +481,8 @@ struct pneigh_entry * pneigh_lookup(struct neigh_table *tbl, const void *pkey, | |||
481 | if (!creat) | 481 | if (!creat) |
482 | goto out; | 482 | goto out; |
483 | 483 | ||
484 | ASSERT_RTNL(); | ||
485 | |||
484 | n = kmalloc(sizeof(*n) + key_len, GFP_KERNEL); | 486 | n = kmalloc(sizeof(*n) + key_len, GFP_KERNEL); |
485 | if (!n) | 487 | if (!n) |
486 | goto out; | 488 | goto out; |