mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
Btrfs: fix return value from btrfs_listxattr when buffer size is too small
The return value was being overwritten. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
This commit is contained in:
parent
cad321ad52
commit
b16281c30c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue