diff options
-rw-r--r-- | net/core/neighbour.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index d1f8f7847f7c..2296a145fb78 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -1555,7 +1555,9 @@ out: | |||
1555 | 1555 | ||
1556 | static int neightbl_fill_parms(struct sk_buff *skb, struct neigh_parms *parms) | 1556 | static int neightbl_fill_parms(struct sk_buff *skb, struct neigh_parms *parms) |
1557 | { | 1557 | { |
1558 | struct rtattr *nest = RTA_NEST(skb, NDTA_PARMS); | 1558 | struct rtattr *nest = NULL; |
1559 | |||
1560 | nest = RTA_NEST(skb, NDTA_PARMS); | ||
1559 | 1561 | ||
1560 | if (parms->dev) | 1562 | if (parms->dev) |
1561 | RTA_PUT_U32(skb, NDTPA_IFINDEX, parms->dev->ifindex); | 1563 | RTA_PUT_U32(skb, NDTPA_IFINDEX, parms->dev->ifindex); |