[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160115.151213.2258553264727846515.davem@davemloft.net>
Date: Fri, 15 Jan 2016 15:12:13 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: geert@...ux-m68k.org
Cc: vyasevich@...il.com, nhorman@...driver.com, lucien.xin@...il.com,
linux-sctp@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: sctp: Move sequence start handling into
sctp_transport_get_idx()
From: Geert Uytterhoeven <geert@...ux-m68k.org>
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@...ux-m68k.org>
Applied, thanks Geert.
Powered by blists - more mailing lists