aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2019-05-15 14:09:05 -0700
committerSteve French <stfrench@microsoft.com>2019-05-15 22:27:53 -0500
commit2c87d6a94d162e68ca393cb87719dae8737f55c0 (patch)
treecd3f5b7d487cfcb182434229a8a0a12af740a03d /fs/cifs/cifsfs.c
parentcifs: Don't match port on SMBDirect transport (diff)
downloadwireguard-linux-2c87d6a94d162e68ca393cb87719dae8737f55c0.tar.xz
wireguard-linux-2c87d6a94d162e68ca393cb87719dae8737f55c0.zip
cifs: Allocate memory for all iovs in smb2_ioctl
An IOCTL uses up to 2 iovs. The 1st iov is the command itself, the 2nd iov is optional data for that command. The 1st iov is always allocated on the heap but the 2nd iov may point to a variable on the stack. This will trigger an error when passing the 2nd iov for RDMA I/O. Fix this by allocating a buffer for the 2nd iov. Signed-off-by: Long Li <longli@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Ronnie sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
0 files changed, 0 insertions, 0 deletions