VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Daniel Drake <dsd@gentoo.org> 2005-12-12 00:37:08 -0800 committer: Linus Torvalds <torvalds@g5.osdl.org> 2005-12-12 08:57:42 -0800 commit: 894ec8707ced240b96dc45944790fb35d9a6b03c parent: c3f5902325d3053986e7359f706581d8f032e72f
Commit Summary:
[PATCH] Fix listxattr() for generic security attributes
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/xattr.c b/fs/xattr.c
index a9db22557998..bcc2156d4d28 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -245,7 +245,7 @@ listxattr(struct dentry *d, char __user *list, size_t size)
 		error = d->d_inode->i_op->listxattr(d, klist, size);
 	} else {
 		error = security_inode_listsecurity(d->d_inode, klist, size);
-		if (size && error >= size)
+		if (size && error > size)
 			error = -ERANGE;
 	}
 	if (error > 0) {