提交 b16281c3 编写于 作者: Y Yehuda Sadeh Weinraub 提交者: Chris Mason

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

The return value was being overwritten.
Signed-off-by: NYehuda Sadeh <yehuda@hq.newdream.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册