aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/neighbour.c')
-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 6e890f51b7d8..6233e9856016 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -635,7 +635,7 @@ struct pneigh_entry * pneigh_lookup(struct neigh_table *tbl,
635 635
636 ASSERT_RTNL(); 636 ASSERT_RTNL();
637 637
638 n = kmalloc(sizeof(*n) + key_len, GFP_KERNEL); 638 n = kzalloc(sizeof(*n) + key_len, GFP_KERNEL);
639 if (!n) 639 if (!n)
640 goto out; 640 goto out;
641 641
@@ -1271,7 +1271,7 @@ int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new,
1271 * we can reinject the packet there. 1271 * we can reinject the packet there.
1272 */ 1272 */
1273 n2 = NULL; 1273 n2 = NULL;
1274 if (dst) { 1274 if (dst && dst->obsolete != DST_OBSOLETE_DEAD) {
1275 n2 = dst_neigh_lookup_skb(dst, skb); 1275 n2 = dst_neigh_lookup_skb(dst, skb);
1276 if (n2) 1276 if (n2)
1277 n1 = n2; 1277 n1 = n2;