]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix corrupt SMB2 ioctl requests
authorSteve French <smfrench@gmail.com>
Mon, 14 Oct 2013 05:44:19 +0000 (00:44 -0500)
committerSteve French <smfrench@gmail.com>
Fri, 18 Oct 2013 16:12:18 +0000 (11:12 -0500)
commitdcd63989c9d7c80b898ffd3ba466c3ece2c123d5
tree2251ebd2b16df304647dac590a855c9bee51fecd
parent04919afb85c8f007b7326c4da5eb61c52e91b9c7
Fix corrupt SMB2 ioctl requests

We were off by one calculating the length of ioctls in some cases
because the protocol specification for SMB2 ioctl includes a mininum
one byte payload but not all SMB2 ioctl requests actually have
a data buffer to send. We were also not zeroing out the
return buffer (in case of error this is helpful).

Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2pdu.c