]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Clarify SMB1 code for POSIX Create
authorSteve French <stfrench@microsoft.com>
Thu, 22 Jul 2021 18:50:41 +0000 (13:50 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 22 Jul 2021 18:50:41 +0000 (13:50 -0500)
commit253b41411d8686f1313499a895f57cc5e241d905
tree38f37375d0329f1f3ff74931dd0d8a0e39e3cf34
parent3204f180320ec6bdb5c1bc77ef4fe9a68fb97cf3
CIFS: Clarify SMB1 code for POSIX Create

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

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