diff --git a/[refs] b/[refs] index 9a7fe64f37a0..6d783f622607 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c3f5902325d3053986e7359f706581d8f032e72f +refs/heads/master: 894ec8707ced240b96dc45944790fb35d9a6b03c diff --git a/trunk/fs/xattr.c b/trunk/fs/xattr.c index a9db22557998..bcc2156d4d28 100644 --- a/trunk/fs/xattr.c +++ b/trunk/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) {