From 9dbfb1322a4039bee56c91c15b0f81f91c83a5e7 Mon Sep 17 00:00:00 2001 From: Dave Kleikamp Date: Thu, 15 Jan 2004 05:03:45 -0600 Subject: [PATCH] JFS: Creating large xattr lists may cause BUG The bug was caused by a flag being or'ed against an unitialized value, rather than setting the flag correctly. --- fs/jfs/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index fd8f93a1f7042..9db94506cc4ad 100644 --- a/fs/jfs/xattr.c +++ b/fs/jfs/xattr.c @@ -499,7 +499,7 @@ static int ea_get(struct inode *inode, struct ea_buffer *ea_buf, int min_size) if (ea_buf->xattr == NULL) return -ENOMEM; - ea_buf->flag |= EA_MALLOC; + ea_buf->flag = EA_MALLOC; ea_buf->max_size = (size + sb->s_blocksize - 1) & ~(sb->s_blocksize - 1); -- 2.53.0