[PATCH] cifs: endian fix
Andrew Morton
akpm at osdl.org
Mon May 15 19:30:36 GMT 2006
Alexey Dobriyan <adobriyan at gmail.com> wrote:
>
> Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
> ---
>
> --- 1/fs/cifs/cifssmb.c
> +++ 1/fs/cifs/cifssmb.c
> @@ -1409,10 +1409,10 @@ CIFSSMBPosixLock(const int xid, struct c
>
> 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;
Thanks. The bug's in mainline, although this patch is against git-cifs.
Steve, if you want me to redo this and get it into 2.6.17, please holler.
More information about the samba-technical
mailing list