[CIFS] initialize nbytes at the beginning of CIFSSMBWrite()
authorSteve French <sfrench@us.ibm.com>
Sat, 3 Apr 2010 17:20:21 +0000 (17:20 +0000)
committerSteve French <sfrench@us.ibm.com>
Sat, 3 Apr 2010 17:20:21 +0000 (17:20 +0000)
By doing this we always overwrite nbytes value that is being passed on to
CIFSSMBWrite() and need not rely on the callers to initialize. CIFSSMBWrite2 is
doing this already.

CC: Stable <stable@kernel.org>
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>

No differences found