aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-06-18 22:52:09 -0700
committerDavid S. Miller <davem@davemloft.net>2005-06-18 22:52:09 -0700
commite386c6eb431ca2e435d0202ad6997f3d2ccab2ce (patch)
treef8d3145d017b3918f632595b2e14a5547956597c /net
parent4b6ea82dd18c97598c3caaa8d0b1feec87857e70 (diff)
downloadkernel_samsung_espresso10-e386c6eb431ca2e435d0202ad6997f3d2ccab2ce.zip
kernel_samsung_espresso10-e386c6eb431ca2e435d0202ad6997f3d2ccab2ce.tar.gz
kernel_samsung_espresso10-e386c6eb431ca2e435d0202ad6997f3d2ccab2ce.tar.bz2
[NEIGH]: Fix use of uninitialized variable when trimming in neightbl_fill_parms
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/neighbour.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index d1f8f78..2296a14 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -1555,7 +1555,9 @@ out:
static int neightbl_fill_parms(struct sk_buff *skb, struct neigh_parms *parms)
{
- struct rtattr *nest = RTA_NEST(skb, NDTA_PARMS);
+ struct rtattr *nest = NULL;
+
+ nest = RTA_NEST(skb, NDTA_PARMS);
if (parms->dev)
RTA_PUT_U32(skb, NDTPA_IFINDEX, parms->dev->ifindex);