summaryrefslogtreecommitdiff
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2018-10-25 08:43:36 +0300
committerSteve French <stfrench@microsoft.com>2018-11-02 22:09:41 +0300
commit0c5d6cb6643f48ad3775322f3ebab6c7eb67484e (patch)
tree708f90365fd6d08b197801a8a4d7424b3b87831c /fs/cifs/file.c
parent5f21585384a4a69b8bfdd2cae7e3648ae805f57d (diff)
downloadlinux-0c5d6cb6643f48ad3775322f3ebab6c7eb67484e.tar.xz
cifs: fix return value for cifs_listxattr
If the application buffer was too small to fit all the names we would still count the number of bytes and return this for listxattr. This would then trigger a BUG in usercopy.c Fix the computation of the size so that we return -ERANGE correctly when the buffer is too small. This fixes the kernel BUG for xfstest generic/377 Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Diffstat (limited to 'fs/cifs/file.c')
0 files changed, 0 insertions, 0 deletions