aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2017-04-25 15:37:56 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-20 08:28:39 -0400
commit127adc188c62ffd3d3e78e1f057ab7669b37c10f (patch)
tree70fc46fe685bfdf00854e65267dd671fd1ddd83d /fs
parentb2764f851db69a3320f59205d78265d5c72c03cd (diff)
orangefs: fix bounds check for listxattr
commit a956af337b9ff25822d9ce1a59c6ed0c09fc14b9 upstream. Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/orangefs/xattr.c2
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:
358 358
359 returned_count = new_op->downcall.resp.listxattr.returned_count; 359 returned_count = new_op->downcall.resp.listxattr.returned_count;
360 if (returned_count < 0 || 360 if (returned_count < 0 ||
361 returned_count >= ORANGEFS_MAX_XATTR_LISTLEN) { 361 returned_count > ORANGEFS_MAX_XATTR_LISTLEN) {
362 gossip_err("%s: impossible value for returned_count:%d:\n", 362 gossip_err("%s: impossible value for returned_count:%d:\n",
363 __func__, 363 __func__,
364 returned_count); 364 returned_count);