projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0714012
)
Btrfs: fix an while-loop of listxattr
author
Liu Bo
<bo.li.liu@oracle.com>
Mon, 26 Nov 2012 02:58:36 +0000
(
02:58
+0000)
committer
Chris Mason
<chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:07 +0000
(20:46 -0500)
If we found an invalid xattr dir item, we'd better try the next one instead.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/xattr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/xattr.c
b/fs/btrfs/xattr.c
index 3f4e2d69e83a13cb66f3f3a56024f53f5299f5c4..e9d384055494a6f17ddf9ee99f31766926a8c4dd 100644
(file)
--- a/
fs/btrfs/xattr.c
+++ b/
fs/btrfs/xattr.c
@@
-265,7
+265,7
@@
ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size)
di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item);
if (verify_dir_item(root, leaf, di))
-
continue
;
+
goto next
;
name_len = btrfs_dir_name_len(leaf, di);
total_size += name_len + 1;