Skip to content

Commit

Permalink
orangefs: fix bounds check for listxattr
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Brandenburg <[email protected]>
Cc: [email protected]
Signed-off-by: Mike Marshall <[email protected]>
  • Loading branch information
Martin Brandenburg authored and hubcapsc committed Apr 26, 2017
1 parent 418ce3e commit a956af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/orangefs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a956af3

Please sign in to comment.