From 8c6ba51bdad0de0dc2a2e2415d4dac2d0db6c1a1 Mon Sep 17 00:00:00 2001 From: Eric Sesterhenn Date: Fri, 29 Sep 2006 02:01:32 -0700 Subject: [PATCH] [PATCH] Uninitialized variable in drivers/net/wan/syncppp.c For len equal to 4, we never call sppp_lcp_conf_parse_options(), therefore rmagic does not get initialized. Signed-off-by: Eric Sesterhenn Acked-by: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/net/wan/syncppp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/syncppp.c b/drivers/net/wan/syncppp.c index d1173089f33..218f7b574ab 100644 --- a/drivers/net/wan/syncppp.c +++ b/drivers/net/wan/syncppp.c @@ -469,7 +469,7 @@ static void sppp_lcp_input (struct sppp *sp, struct sk_buff *skb) struct net_device *dev = sp->pp_if; int len = skb->len; u8 *p, opt[6]; - u32 rmagic; + u32 rmagic = 0; if (!pskb_may_pull(skb, sizeof(struct lcp_header))) { if (sp->pp_flags & PP_DEBUG) -- 2.41.1