cifs: Fix error in smb_send2
commita996495680c25e646ffb65ab0a660f49e4155737
authorSteve French <sfrench@us.ibm.com>
Fri, 21 Nov 2008 07:28:52 +0000 (21 12:58 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Dec 2008 18:55:22 +0000 (5 10:55 -0800)
treefb14422101cc75acc653b293cf9897c68b62718d
parent49f651464be9c5b875b6d9a48e74e903f068d89a
cifs: Fix error in smb_send2

Backport of upstream commit 61de800d33af585cb7e6f27b5cdd51029c6855cb
for -stable.

[CIFS] fix error in smb_send2

smb_send2 exit logic was strange, and with the previous change
could cause us to fail large
smb writes when all of the smb was not sent as one chunk.

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Cc: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/cifssmb.c
fs/cifs/file.c
fs/cifs/transport.c