Commit b16281c3 authored by Yehuda Sadeh Weinraub's avatar Yehuda Sadeh Weinraub Committed by Chris Mason

Btrfs: fix return value from btrfs_listxattr when buffer size is too small

The return value was being overwritten.
Signed-off-by: default avatarYehuda Sadeh <yehuda@hq.newdream.net>
parent cad321ad
......@@ -226,7 +226,7 @@ ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size)
if (!buffer || (name_len + 1) > size_left) {
ret = -ERANGE;
break;
goto err;
}
name_ptr = (unsigned long)(di + 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment