]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Allocate encryption header through kmalloc
authorLong Li <longli@microsoft.com>
Fri, 27 Mar 2020 05:09:20 +0000 (22:09 -0700)
committerSteve French <stfrench@microsoft.com>
Sun, 29 Mar 2020 21:42:54 +0000 (16:42 -0500)
commitff8d6a1e0fd1a41d0ada65a77214adbbf2d678d6
tree39867fa0e69552e40dacf8910d99f407a78dda71
parentb46c5d78333f501566a8a6fcf0e33a91a644d31f
cifs: Allocate encryption header through kmalloc

When encryption is used, smb2_transform_hdr is defined on the stack and is
passed to the transport. This doesn't work with RDMA as the buffer needs to
be DMA'ed.

Fix it by using kmalloc.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/transport.c