Re: [PATCH] tcp: initialize variable ecn_ok in syncookies path

From: David Miller
Date: Thu Aug 11 2011 - 01:05:30 EST


From: Mike Waychison <mikew@xxxxxxxxxx>
Date: Wed, 10 Aug 2011 11:51:24 -0700

> Using a gcc 4.4.3, warnings are emitted for a possibly uninitialized use
> of ecn_ok.
>
> This can happen if cookie_check_timestamp() returns due to not
> having seen a timestamp. Defaulting to ecn off seems like a
> reasonable thing to do in this case, so initialized ecn_ok to false.
>
> Signed-off-by: Mike Waychison <mikew@xxxxxxxxxx>

Applied, thanks Mike.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/