]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SUNRPC: Fix a re-entrancy bug in xs_tcp_read_calldir()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 16 Jun 2010 17:57:32 +0000 (13:57 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:29 +0000 (10:29 -0700)
commit07ddc6b62f7d2dc106f95c0ee907a26f438bae00
tree6027158d8eeb97ad1b8fe7036588a39ec79685bc
parent1a587ebc33f1e6175a632cc2c9b89563c8826df7
SUNRPC: Fix a re-entrancy bug in xs_tcp_read_calldir()

commit b76ce56192bcf618013fb9aecd83488cffd645cc upstream.

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 <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sunrpc/xprtsock.c