]> git.ipfire.org Git - people/ms/linux.git/commit - fs/cifs/transport.c
CIFS: Make SendReceive2() takes resp iov
authorPavel Shilovsky <pshilov@microsoft.com>
Tue, 25 Oct 2016 18:38:47 +0000 (11:38 -0700)
committerSteve French <smfrench@gmail.com>
Wed, 1 Feb 2017 22:46:34 +0000 (16:46 -0600)
commitda502f7df03d2d0b416775f92ae022f3f82bedd5
tree1b6914dea96f1b0c0935dd9d82acd28b41b9ecc5
parent31473fc4f9653b73750d3792ffce6a6e1bdf0da7
CIFS: Make SendReceive2() takes resp iov

Now SendReceive2 frees the first iov and returns a response buffer
in it that increases a code complexity. Simplify this by making
a caller responsible for freeing request buffer itself and returning
a response buffer in a separate iov.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/sess.c
fs/cifs/smb2pdu.c
fs/cifs/transport.c