Commit 1c46943f authored by Steve French's avatar Steve French

[CIFS] Fix minor endian error in durable handle patch series

Fix endian warning:

  CHECK   fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.c:1068:40: warning: incorrect type in assignment (different base types)
fs/cifs/smb2pdu.c:1068:40:    expected restricted __le32 [usertype] Next
fs/cifs/smb2pdu.c:1068:40:    got unsigned long
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent 9cbc0b73
...@@ -1065,7 +1065,8 @@ SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path, ...@@ -1065,7 +1065,8 @@ SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path,
if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) { if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) {
struct create_context *ccontext = struct create_context *ccontext =
(struct create_context *)iov[num_iovecs-1].iov_base; (struct create_context *)iov[num_iovecs-1].iov_base;
ccontext->Next = sizeof(struct create_lease); ccontext->Next =
cpu_to_le32(sizeof(struct create_lease));
} }
rc = add_durable_context(iov, &num_iovecs, oparms); rc = add_durable_context(iov, &num_iovecs, oparms);
if (rc) { if (rc) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment