diff options
author | Steve French <sfrench@us.ibm.com> | 2009-05-01 12:21:04 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2009-05-01 12:25:15 -0400 |
commit | 051a2a0d3242b448281376bb63cfa9385e0b6c68 (patch) | |
tree | f0fd4e09526dfb72a4d065fa5144f5dc0f5e99b1 | |
parent | e836f015b5c07da2f95a441274ef0a788ce17f80 (diff) |
[CIFS] Fix endian conversion of vcnum field
When multiply mounting from the same client to the same server, with
different userids, we create a vcnum which should be unique if
possible (this is not the same as the smb uid, which is the handle
to the security context). We were not endian converting additional
(beyond the first which is zero) vcnum properly.
CC: Stable <stable@kernel.org>
Acked-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
-rw-r--r-- | fs/cifs/sess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index 2bcff17047ab..b2bdc2a33833 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c | |||
@@ -111,7 +111,7 @@ static __le16 get_next_vcnum(struct cifsSesInfo *ses) | |||
111 | get_vc_num_exit: | 111 | get_vc_num_exit: |
112 | write_unlock(&cifs_tcp_ses_lock); | 112 | write_unlock(&cifs_tcp_ses_lock); |
113 | 113 | ||
114 | return le16_to_cpu(vcnum); | 114 | return cpu_to_le16(vcnum); |
115 | } | 115 | } |
116 | 116 | ||
117 | static __u32 cifs_ssetup_hdr(struct cifsSesInfo *ses, SESSION_SETUP_ANDX *pSMB) | 117 | static __u32 cifs_ssetup_hdr(struct cifsSesInfo *ses, SESSION_SETUP_ANDX *pSMB) |