diff options
author | David Disseldorp <ddiss@suse.de> | 2017-05-03 17:39:09 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-05-03 16:54:12 +0200 |
commit | 0e5c795592930d51fd30d53a2e7b73cba022a29b (patch) | |
tree | 6921ebd2ac89689da36f02e119fad820cb7af9b8 /fs/cifs/ioctl.c | |
parent | Set unicode flag on cifs echo request to avoid Mac error (diff) | |
download | linux-0e5c795592930d51fd30d53a2e7b73cba022a29b.tar.xz linux-0e5c795592930d51fd30d53a2e7b73cba022a29b.zip |
cifs: fix leak in FSCTL_ENUM_SNAPS response handling
The server may respond with success, and an output buffer less than
sizeof(struct smb_snapshot_array) in length. Do not leak the output
buffer in this case.
Fixes: 834170c85978 ("Enable previous version support")
Signed-off-by: David Disseldorp <ddiss@suse.de>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/ioctl.c')
0 files changed, 0 insertions, 0 deletions