diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index 37b984692ca901cc8589b19a8e96cca42c0faa57..bb8c4583f0655356c418a5dafe1fb845dd2ad36b 100644 --- a/fs/jfs/xattr.c +++ b/fs/jfs/xattr.c @@ -447,6 +447,8 @@ static int ea_get(struct inode *inode, struct ea_buffer *ea_buf, int min_size) int rc; int quota_allocation = 0; + memset(&ea_buf->new_ea, 0, sizeof(ea_buf->new_ea)); + /* When fsck.jfs clears a bad ea, it doesn't clear the size */ if (ji->ea.flag == 0) ea_size = 0;