CIFS: Clarify SMB1 code for rename open file
authorSteve French <stfrench@microsoft.com>
Wed, 7 Jul 2021 18:34:47 +0000 (13:34 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 7 Jul 2021 21:42:25 +0000 (16:42 -0500)
commitf371793d6e13a1387b83a72d7bb2c0e3a9ea654f
treeb1576e13bcf69a96966bb1d75026a77f37a23eb8
parent2a780e8b64874ae5b4201a491799aef838da7bdd
CIFS: Clarify SMB1 code for rename open file

Coverity also complains about the way we calculate the offset
(starting from the address of a 4 byte array within the
header structure rather than from the beginning of the struct
plus 4 bytes) for SMB1 RenameOpenFile. This changeset
doesn't change the address but makes it slightly clearer.

Addresses-Coverity: 711521 ("Out of bounds write")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c