diff options
author | Steve French <sfrench@us.ibm.com> | 2007-12-31 00:49:57 +0100 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-12-31 00:49:57 +0100 |
commit | dae5dbdbd786798ad2249e54df1156d524da30aa (patch) | |
tree | 395e075ae32ce7ccbf49c7a1a510d382306cd2e8 /fs/cifs/cifssmb.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 (diff) | |
download | linux-dae5dbdbd786798ad2249e54df1156d524da30aa.tar.xz linux-dae5dbdbd786798ad2249e54df1156d524da30aa.zip |
[CIFS] fix SetEA failure to some Samba versions
Thanks to Oleg Gvozdev for noticing the problem.
CC: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 9e8a6bef029a..618542b8ce0b 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -5499,7 +5499,7 @@ SetEARetry: else name_len = strnlen(ea_name, 255); - count = sizeof(*parm_data) + ea_value_len + name_len + 1; + count = sizeof(*parm_data) + ea_value_len + name_len; pSMB->MaxParameterCount = cpu_to_le16(2); pSMB->MaxDataCount = cpu_to_le16(1000); /* BB find max SMB size from sess */ pSMB->MaxSetupCount = 0; |