Geert Uytterhoeven 6d3a4c4046 strparser: Propagate correct error code in strp_recv()
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-12 01:51:49 -04:00
..
2016-07-05 14:08:47 -07:00
2016-09-23 08:38:50 -04:00
2016-10-04 02:11:51 -04:00
2016-10-11 04:44:37 -04:00
2016-10-03 02:00:22 -04:00
2016-08-17 19:36:23 -04:00
2016-08-17 19:36:23 -04:00