Skip to contentSkip to conversation

IPV6 debug printk error and missing release in error path

PATCH Applied Stephen Hemminger 2 participants 2 messages Dec 19, 2003 – Dec 22, 2003

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IPV6 debug printk error and missing release in error path

A couple of small fixes for IPV6 network discovery:
* A NPRINTK2 in ndisc_parse_options would not compile if ND_DEBUG level was up to 3
* missing dst_release in ndisc_send_rs error path if skb_alloc fails.

net/ipv6/ndisc.c +3 -3
diff -Nru a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
@@ -207,9 +207,8 @@
 		case ND_OPT_MTU:
 		case ND_OPT_REDIRECT_HDR:
 			if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) {
-				ND_PRINTK2((KERN_WARNING
-					    "ndisc_parse_options(): duplicated ND6 option found: type=%d\n",
-					    nd_opt->nd_opt_type));
+				ND_PRINTK2("ndisc_parse_options(): duplicated ND6 option found: type=%d\n",
+					    nd_opt->nd_opt_type);
 			} else {
 				ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt;
 			}
@@ -619,6 +618,7 @@
 				  1, &err);
 	if (skb == NULL) {
 		ND_PRINTK1("send_ns: alloc skb failed\n");
+		dst_release(dst);
 		return;
 	}
 
#1 lore raw
Quoted 3 lines · On Fri, 19 Dec 2003 13:24:31 -0800 Stephen Hemminger <[email protected]>…

A couple of small fixes for IPV6 network discovery:
* A NPRINTK2 in ndisc_parse_options would not compile if ND_DEBUG level was up to 3
* missing dst_release in ndisc_send_rs error path if skb_alloc fails.

Applied, thanks Stephen.