IPV6 debug printk error and missing release in error path
Subsystems (3)
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
@@ -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 ; }
David S. Miller
AppliedQuoted 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 inndisc_parse_optionswould not compile ifND_DEBUGlevel was up to 3
* missingdst_releaseinndisc_send_rserror path ifskb_allocfails.
Applied, thanks Stephen.