]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:47:51 +0000 (07:47 -0700)
commit328f7088efe2d95b00fe277c51896062aa82942e
tree3b454d0fd6e8aa780287f924b73ff6330798f649
parentc171476c7ddde592eafb085d8a5d95ce4f1b3ef2
CIFS: initialize nbytes at the beginning of CIFSSMBWrite()

commit a24e2d7d8f512340991ef0a59cb5d08d491b8e98 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/cifssmb.c