Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=adbc03587c17e8f50478c1d7744a454cfb9e0653
Commit:     adbc03587c17e8f50478c1d7744a454cfb9e0653
Parent:     ce51ae14ae141eacecf2801f9a3646a737ce64a0
Author:     Steve French <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 17 02:12:46 2007 +0000
Committer:  Steve French <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 02:12:46 2007 +0000

    [CIFS] endian fixes
    
    Signed-off-by: Steve French <[EMAIL PROTECTED]>
---
 fs/cifs/cifsacl.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c
index 9c4a296..b1f448f 100644
--- a/fs/cifs/cifsacl.c
+++ b/fs/cifs/cifsacl.c
@@ -115,8 +115,8 @@ int compare_sids(struct cifs_sid *ctsid, struct cifs_sid 
*cwsid)
        }
 
        /* compare all of the subauth values if any */
-       num_sat = cpu_to_le32(ctsid->num_subauth);
-       num_saw = cpu_to_le32(cwsid->num_subauth);
+       num_sat = ctsid->num_subauth;
+       num_saw = cwsid->num_subauth);
        num_subauth = num_sat < num_saw ? num_sat : num_saw;
        if (num_subauth) {
                for (i = 0; i < num_subauth; ++i) {
@@ -206,7 +206,7 @@ static void parse_dacl(struct cifs_acl *pdacl, char 
*end_of_acl)
        acl_base = (char *)pdacl;
        acl_size = sizeof(struct cifs_acl);
 
-       num_aces = cpu_to_le32(pdacl->num_aces);
+       num_aces = le32_to_cpu(pdacl->num_aces);
        if (num_aces  > 0) {
                ppntace = kmalloc(num_aces * sizeof(struct cifs_ntace *),
                                GFP_KERNEL);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to