fs/cifs: keep guid when assigning fid to fileinfo
authorAurelien Aptel <aaptel@suse.com>
Thu, 22 Sep 2016 05:38:50 +0000 (07:38 +0200)
committerSteve French <smfrench@gmail.com>
Wed, 12 Oct 2016 17:08:32 +0000 (12:08 -0500)
commit94f873717571c759b7928399cbbddfa3d569bd01
treeff38b19308a37d3bafabe8f3b04022f427cd0f41
parentfa70b87cc6641978b20e12cc5d517e9ffc0086d4
fs/cifs: keep guid when assigning fid to fileinfo

When we open a durable handle we give a Globally Unique
Identifier (GUID) to the server which we must keep for later reference
e.g. when reopening persistent handles on reconnection.

Without this the GUID generated for a new persistent handle was lost and
16 zero bytes were used instead on re-opening.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2ops.c