Commit 48d741a0 authored by Krishna Kumar's avatar Krishna Kumar Committed by David S. Miller

[IPV6]: Missing in6_dev_put in router discovery.

parent 4ccb8522
...@@ -871,6 +871,7 @@ static void ndisc_router_discovery(struct sk_buff *skb) ...@@ -871,6 +871,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
} }
if (!ndisc_parse_options(opt, optlen, &ndopts)) { if (!ndisc_parse_options(opt, optlen, &ndopts)) {
in6_dev_put(in6_dev);
if (net_ratelimit()) if (net_ratelimit())
ND_PRINTK2(KERN_WARNING ND_PRINTK2(KERN_WARNING
"ICMP6 RA: invalid ND option, ignored.\n"); "ICMP6 RA: invalid ND option, ignored.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment