]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CIFS: Fix endian conversion of vcnum field
authorSteve French <sfrench@us.ibm.com>
Fri, 1 May 2009 16:21:04 +0000 (16:21 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 May 2009 23:35:09 +0000 (16:35 -0700)
commit330081190974939b32fd0bb6dc7587580708ea1f
tree2f37c649dfc5fd7ec11615834419b6f97ea4e8c6
parent5da3b37d5eb68af30eb9e8bb553bed8c616024eb
CIFS: Fix endian conversion of vcnum field

commit 051a2a0d3242b448281376bb63cfa9385e0b6c68 upstream.

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.

Acked-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/sess.c