[PATCH] net/sunrpc/svcsock.c: fix a check
authorAdrian Bunk <bunk@stusta.de>
Thu, 5 Apr 2007 02:08:21 +0000 (19:08 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 5 Apr 2007 04:12:47 +0000 (21:12 -0700)
commit418106d6248618bca1add65168a82974c72206db
treefe8b9484c06814c8d11f4e114db460ebbe613f3c
parent5792a2856a63cdc568e08a7d6f9b2413d9217b3e
[PATCH] net/sunrpc/svcsock.c: fix a check

The return value of kernel_recvmsg() should be assigned to "err", not
compared with the random value of a never initialized "err" (and the "< 0"
check wrongly always returned false since == comparisons never have a
result < 0).

Spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
net/sunrpc/svcsock.c