]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Clarify SMB1 code for POSIX delete file
authorSteve French <stfrench@microsoft.com>
Thu, 22 Jul 2021 19:35:15 +0000 (14:35 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 22 Jul 2021 19:35:15 +0000 (14:35 -0500)
commit9e588c892b73eae6a65764d8b62deafbe574080d
treea4beaa3e841a8f10e30779d3876abd0601900f5f
parentf32bbcfd9ae44a4d7e367806e8080b0aee1d296a
CIFS: Clarify SMB1 code for POSIX delete 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 CIFSPOSIXDelFile. This changeset
doesn't change the address but makes it slightly clearer.

Addresses-Coverity: 711519 ("Out of bounds write")
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c