ipv6: setsockopt(IPIPPROTO_IPV6,IPV6_MINHOPCOUNT) forgot to set return value
Subsystems (3)
PATCH 1/1 ipv6: setsockopt(IPIPPROTO_IPV6,IPV6_MINHOPCOUNT) forgot to set return value
Cc Stephen Hemminger <[email protected]>
Signed-off-by Hannes Frederic Sowa <[email protected]>
--- net/ipv6/ipv6_sockglue.c | 1 + 1 file changed, 1 insertion(+)
net/ipv6/ipv6_sockglue.c +1 -0
@@ -827,6 +827,7 @@ pref_skip_coa:if (val <0 || val >255 ) goto e_inval; np->min_hopcount = val; + retv =0 ;break ;case IPV6_DONTFRAG : np->dontfrag = valbool;
Wonder if this ever worked? The patch should go
to stable as well.
The original coding style was prone to these kind of errors because of the use of "goto e_inval" to do the unlock, and fall through is prone to these kind of errors.
David Miller
maintainerFrom: Hannes Frederic Sowa <[email protected]>
Date: Sun, 11 Nov 2012 06:52:34 +0100
Quoted 2 lines
Cc Stephen Hemminger <[email protected]>Signed-off-by Hannes Frederic Sowa <[email protected]>
Applied and queued up for -stable, thanks.