]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc96144d1fa77c0c54f4202f73847e32239dadcd
tree1ecf625c949cd8f461dc73811a7f93a9cc276a3e
parent0a25e49bcdb9c41fe6eb04b961fba2c197c68caa
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