CIFS: Fix possible buffer corruption in cifs_user_read()
authorPavel Shilovsky <pshilovsky@samba.org>
Thu, 10 Jul 2014 06:21:15 +0000 (10:21 +0400)
committerSteve French <smfrench@gmail.com>
Sat, 2 Aug 2014 06:23:04 +0000 (01:23 -0500)
commit2e8a05d80213cdfbf3bf8e6eb3059831c7015e89
tree571a362d0bb4af0d8e2a7e60b9082d906221b329
parentb3160aebb49b5e07f6bc3b8c5bed6013ca9e422e
CIFS: Fix possible buffer corruption in cifs_user_read()

If there was a short read in the middle of the rdata list,
we can end up with a corrupt output buffer.

Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/file.c