]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 22 Jun 2010 17:21:18 +0000 (13:21 -0400)
commit44599af3b94c5e257dcba06627a5000c61ad70d5
tree1a071da8b3e4fcc1fbfe67c99cc622372502edb2
parente0c4144202355651e275d8bab6bcbe729c14a9f1
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 <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
net/sunrpc/xprtsock.c