[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)
commita24e2d7d8f512340991ef0a59cb5d08d491b8e98
treeceda70bdfd41835725f951d026073056f38aed42
parent810627a013163cd294762d57c0ea2ec055ffe4f6
[CIFS] initialize nbytes at the beginning of CIFSSMBWrite()

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>
fs/cifs/cifssmb.c