diff options
author | Steve French <sfrench@us.ibm.com> | 2006-05-30 18:07:17 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-05-30 18:07:17 +0000 |
commit | cec6815a12edc91b123394f29d672cb9fa6cf79f (patch) | |
tree | 06fb2dd56ff647ece64ea6b43f62b8cfd986c949 | |
parent | a424f8bfcbecb8353b88a351394e8d1960136219 (diff) | |
download | kernel-common-cec6815a12edc91b123394f29d672cb9fa6cf79f.tar.gz kernel-common-cec6815a12edc91b123394f29d672cb9fa6cf79f.tar.bz2 kernel-common-cec6815a12edc91b123394f29d672cb9fa6cf79f.zip |
[CIFS] endian fix for new POSIX byte range lock support
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
-rw-r--r-- | fs/cifs/cifssmb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 20d5e748f41e..925881e00ff2 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -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; |