lkml.org 
[lkml]   [2016]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] strparser: Propagate correct error code in strp_recv()
From
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Thu, 6 Oct 2016 15:41:49 +0200

> With m68k-linux-gnu-gcc-4.1:
>
> net/strparser/strparser.c: In function ‘strp_recv’:
> net/strparser/strparser.c:98: warning: ‘err’ may be used uninitialized in this function
>
> Pass "len" (which is an error code when negative) instead of the
> uninitialized "err" variable to fix this.
>
> Fixes: 43a0c6751a322847 ("strparser: Stream parser for messages")
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Applied and queued up for -stable, thanks.
\
 
 \ /
  Last update: 2016-10-12 08:03    [W:0.031 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site