diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-12-12 22:03:53 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-12 22:03:53 -0500 |
commit | 9da305eb089c94c535d1790fd2dec16f44c1689f (patch) | |
tree | f37f07f148fd7a793233c7f15c0fa9f46212049d /fs/xattr.c | |
parent | d96212ed87d032d2d830e265aae14038dc1f8ad8 (diff) | |
parent | 14ee0a1414536d27bc29373bf23c106b8ef8ce0b (diff) |
Merge branch 'master'
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 a9db2255799..bcc2156d4d2 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) { |