From: Adrian Bunk Date: Thu, 5 Apr 2007 02:08:21 +0000 (-0700) Subject: [PATCH] net/sunrpc/svcsock.c: fix a check X-Git-Tag: v2.6.21-rc6~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=418106d6248618bca1add65168a82974c72206db;p=pandora-kernel.git [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 Acked-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed