[CIFS] endian fix for new POSIX byte range lock support
authorSteve French <sfrench@us.ibm.com>
Tue, 30 May 2006 18:07:17 +0000 (18:07 +0000)
committerSteve French <sfrench@us.ibm.com>
Tue, 30 May 2006 18:07:17 +0000 (18:07 +0000)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifssmb.c

index 20d5e748f41e524f7830180e4be2902850a1f0ea..925881e00ff210e08822cc456337be1734f801d8 100644 (file)
@@ -1409,10 +1409,10 @@ CIFSSMBPosixLock(const int xid, struct cifsTconInfo *tcon,
 
        parm_data->lock_type = cpu_to_le16(lock_type);
        if(waitFlag)
-               parm_data->lock_flags = 1;
+               parm_data->lock_flags = cpu_to_le16(1);
        parm_data->pid = cpu_to_le32(current->tgid);
        parm_data->start = cpu_to_le64(pLockData->fl_start);
-       parm_data->length = len;  /* normalize negative numbers */
+       parm_data->length = cpu_to_le64(len);  /* normalize negative numbers */
 
        pSMB->DataOffset = cpu_to_le16(offset);
        pSMB->Fid = smb_file_id;