diff options
author | Martin Brandenburg <martin@omnibond.com> | 2017-04-25 21:37:56 +0200 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2017-04-26 20:33:00 +0200 |
commit | a956af337b9ff25822d9ce1a59c6ed0c09fc14b9 (patch) | |
tree | 5e16b4b2c900b1feee7db53314a8e08ee9302cbf /fs/orangefs | |
parent | orangefs: remove unused get_fsid_from_ino (diff) | |
download | linux-a956af337b9ff25822d9ce1a59c6ed0c09fc14b9.tar.xz linux-a956af337b9ff25822d9ce1a59c6ed0c09fc14b9.zip |
orangefs: fix bounds check for listxattr
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r-- | fs/orangefs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/xattr.c b/fs/orangefs/xattr.c index 74a81b1daaac..fba4db7d0512 100644 --- a/fs/orangefs/xattr.c +++ b/fs/orangefs/xattr.c @@ -358,7 +358,7 @@ try_again: 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); |