Re: [PATCH] net: sctp: Move sequence start handling into sctp_transport_get_idx()

From: David Miller
Date: Fri Jan 15 2016 - 15:12:20 EST


From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Date: Fri, 15 Jan 2016 14:44:31 +0100

> net/sctp/proc.c: In function ʽsctp_transport_get_idxʼ:
> net/sctp/proc.c:313: warning: ʽobjʼ may be used uninitialized in this function
>
> This is currently a false positive, as all callers check for a zero
> offset first, and handle this case in the exact same way.
>
> Move the check and handling into sctp_transport_get_idx() to kill the
> compiler warning, and avoid future bugs.
>
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Applied, thanks Geert.