Message ID | 1491599832-17773-3-git-send-email-martin@omnibond.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/orangefs/xattr.c b/fs/orangefs/xattr.c index 74a81b1..fba4db7 100644 --- a/fs/orangefs/xattr.c +++ b/fs/orangefs/xattr.c @@ -358,7 +358,7 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size) returned_count = new_op->downcall.resp.listxattr.returned_count; if (returned_count < 0 || - returned_count >= ORANGEFS_MAX_XATTR_LISTLEN) { + returned_count > ORANGEFS_MAX_XATTR_LISTLEN) { gossip_err("%s: impossible value for returned_count:%d:\n", __func__, returned_count);
Signed-off-by: Martin Brandenburg <martin@omnibond.com> --- fs/orangefs/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)