]> git.hungrycats.org Git - linux/commitdiff
[PATCH] CIFSSMBLock() endianness fix
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Sat, 11 Sep 2004 03:10:43 +0000 (20:10 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 11 Sep 2004 03:10:43 +0000 (20:10 -0700)
cpu_to_le32(...) assigned to 16bit fields.

fs/cifs/cifssmb.c

index 52a132731c67c6b759cc2f80b8da5db14c438b2e..abf9473ec24e80a35a3f6d4c22033e2c1fcffc6d 100644 (file)
@@ -816,8 +816,8 @@ CIFSSMBLock(const int xid, struct cifsTconInfo *tcon,
                pSMB->Timeout = 0;
        }
 
-       pSMB->NumberOfLocks = cpu_to_le32(numLock);
-       pSMB->NumberOfUnlocks = cpu_to_le32(numUnlock);
+       pSMB->NumberOfLocks = cpu_to_le16(numLock);
+       pSMB->NumberOfUnlocks = cpu_to_le16(numUnlock);
        pSMB->LockType = lockType;
        pSMB->AndXCommand = 0xFF;       /* none */
        pSMB->Fid = smb_file_id; /* netfid stays le */