projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cad321a
)
Btrfs: fix return value from btrfs_listxattr when buffer size is too small
author
Yehuda Sadeh Weinraub
<yehudasa@gmail.com>
Wed, 17 Dec 2008 15:21:26 +0000
(10:21 -0500)
committer
Chris Mason
<chris.mason@oracle.com>
Wed, 17 Dec 2008 15:21:26 +0000
(10:21 -0500)
The return value was being overwritten.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
fs/btrfs/xattr.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/xattr.c
b/fs/btrfs/xattr.c
index
adb4b32
..
4146f07
100644
(file)
--- a/
fs/btrfs/xattr.c
+++ b/
fs/btrfs/xattr.c
@@
-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);