diff options
author | Steve French <sfrench@us.ibm.com> | 2009-05-01 20:21:04 +0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2009-05-01 20:25:15 +0400 |
commit | 051a2a0d3242b448281376bb63cfa9385e0b6c68 (patch) | |
tree | f0fd4e09526dfb72a4d065fa5144f5dc0f5e99b1 /fs/cifs/sess.c | |
parent | e836f015b5c07da2f95a441274ef0a788ce17f80 (diff) | |
download | linux-051a2a0d3242b448281376bb63cfa9385e0b6c68.tar.xz |
[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>
Diffstat (limited to 'fs/cifs/sess.c')
-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) get_vc_num_exit: write_unlock(&cifs_tcp_ses_lock); - return le16_to_cpu(vcnum); + return cpu_to_le16(vcnum); } static __u32 cifs_ssetup_hdr(struct cifsSesInfo *ses, SESSION_SETUP_ANDX *pSMB) |