]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[CIFS] fix SetEA failure to some Samba versions
authorSteve French <sfrench@us.ibm.com>
Sun, 30 Dec 2007 23:49:57 +0000 (23:49 +0000)
committerSteve French <sfrench@us.ibm.com>
Sun, 30 Dec 2007 23:49:57 +0000 (23:49 +0000)
Thanks to Oleg Gvozdev for noticing the problem.

CC: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/CHANGES
fs/cifs/cifssmb.c

index a609599287aadbeea6c7964b813a407078d93f12..13d788f9e5f05b0e0d1a5f81713ee80eb2c72b81 100644 (file)
@@ -3,7 +3,7 @@ Version 1.52
 Fix oops on second mount to server when null auth is used.
 Enable experimental Kerberos support.  Return writebehind errors on flush
 and sync so that events like out of disk space get reported properly on
-cached files.
+cached files. Fix setxattr failure to certain Samba versions.
 
 Version 1.51
 ------------
index 9e8a6bef029a8bdd5a607d744205200bb236866f..618542b8ce0b7d53e3b1bf302546c0575a6615e9 100644 (file)
@@ -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;