cifs: clarify SMB1 code for UnixCreateHardLink
authorSteve French <stfrench@microsoft.com>
Thu, 1 Jul 2021 22:46:23 +0000 (17:46 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 2 Jul 2021 23:36:23 +0000 (18:36 -0500)
commit819f916c835d0d022117ad97cb3a658546352ab8
tree1ecf625c949cd8f461dc73811a7f93a9cc276a3e
parent01cf30825c8729884090151ab97f1c9c5d14a8bc
cifs: clarify SMB1 code for UnixCreateHardLink

Coverity 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).  This doesn't change the address but
makes it slightly clearer.

Addresses-Coverity: 711529 ("Out of bounds read")
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifspdu.h
fs/cifs/cifssmb.c