diff options
author | Petr Tesarik <[email protected]> | 2007-11-20 02:24:08 +0000 |
---|---|---|
committer | Steve French <[email protected]> | 2007-11-20 02:24:08 +0000 |
commit | 2a97468024fb5b6eccee2a67a7796485c829343a (patch) | |
tree | 98675977be018528ceb6dea5a0f634d4053478a4 /lib/debugobjects.c | |
parent | f7a44eadd5a03b8455c7caab402ce96811c6903d (diff) |
[CIFS] Fix spurious reconnect on 2nd peek from read of SMB length
When retrying kernel_recvmsg() because of a short read, check returned
length against the remaining length, not against total length. This
avoids unneeded session reconnects which would otherwise occur when
kernel_recvmsg() finally returns zero when asked to read zero bytes.
Signed-off-by: Petr Tesarik <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions