Commit 9dbfb132 authored by Dave Kleikamp's avatar Dave Kleikamp Committed by Dave Kleikamp

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.
parent 63b82469
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment