]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: create sd context must be a multiple of 8
authorShyam Prasad N <sprasad@microsoft.com>
Wed, 4 Aug 2021 18:37:22 +0000 (18:37 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 5 Aug 2021 17:48:42 +0000 (12:48 -0500)
commit7d3fc01796fc895e5fcce45c994c5a8db8120a8d
tree03f032784ea705208eaf805ccc5e1c51eb4051c7
parentc500bee1c5b2f1d59b1081ac879d73268ab0ff17
cifs: create sd context must be a multiple of 8

We used to follow the rule earlier that the create SD context
always be a multiple of 8. However, with the change:
cifs: refactor create_sd_buf() and and avoid corrupting the buffer
...we recompute the length, and we failed that rule.
Fixing that with this change.

Cc: <stable@vger.kernel.org> # v5.10+
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c