From: Trond Myklebust Date: Wed, 16 Jun 2010 17:57:32 +0000 (-0400) Subject: SUNRPC: Fix a re-entrancy bug in xs_tcp_read_calldir() X-Git-Tag: v2.6.35-rc4~55^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b76ce56192bcf618013fb9aecd83488cffd645cc;p=pandora-kernel.git SUNRPC: Fix a re-entrancy bug in xs_tcp_read_calldir() If the attempt to read the calldir fails, then instead of storing the read bytes, we currently discard them. This leads to a garbage final result when upon re-entry to the same routine, we read the remaining bytes. Fixes the regression in bugzilla number 16213. Please see https://bugzilla.kernel.org/show_bug.cgi?id=16213 Signed-off-by: Trond Myklebust Cc: stable@kernel.org --- Reading git-diff-tree failed