diff options
Diffstat (limited to 'fs/xattr.c')
-rw-r--r-- | fs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
245 | error = d->d_inode->i_op->listxattr(d, klist, size); | 245 | error = d->d_inode->i_op->listxattr(d, klist, size); |
246 | } else { | 246 | } else { |
247 | error = security_inode_listsecurity(d->d_inode, klist, size); | 247 | error = security_inode_listsecurity(d->d_inode, klist, size); |
248 | if (size && error >= size) | 248 | if (size && error > size) |
249 | error = -ERANGE; | 249 | error = -ERANGE; |
250 | } | 250 | } |
251 | if (error > 0) { | 251 | if (error > 0) { |