]> git.baikalelectronics.ru Git - kernel.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>
Mon, 28 Oct 2013 14:21:36 +0000 (09:21 -0500)
commite80d8a48d55f83ffc041609eb3a9158d5ed3ab30
treef5bbb545bd34b79d0cafa6a6680415e94c240c88
parentbda5560353da942b7837a6fdb77696dce33e7f90
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