--- linux-2.4.19.old/fs/ext2/xattr.c 2002-10-15 13:57:44.000000000 +0200 +++ linux-2.4.19.new/fs/ext2/xattr.c 2002-10-15 13:59:57.000000000 +0200 @@ -587,6 +587,7 @@ struct ext2_xattr_header *header = NULL; struct ext2_xattr_entry *here, *last; unsigned int name_len; + int block = EXT2_I(inode)->i_file_acl; int min_offs = sb->s_blocksize, not_found = 1, free, error; char *end; @@ -618,9 +619,8 @@ return -ERANGE; ext2_xattr_lock(); - if (EXT2_I(inode)->i_file_acl) { + if (block) { /* The inode already has an extended attribute block. */ - int block = EXT2_I(inode)->i_file_acl; bh = sb_bread(sb, block); error = -EIO; --- linux-2.4.19.old/fs/ext3/xattr.c 2002-10-15 14:24:10.000000000 +0200 +++ linux-2.4.19.new/fs/ext3/xattr.c 2002-10-15 14:24:01.000000000 +0200 @@ -587,6 +587,7 @@ struct ext3_xattr_header *header = NULL; struct ext3_xattr_entry *here, *last; unsigned int name_len; + int block = EXT3_I(inode)->i_file_acl; int min_offs = sb->s_blocksize, not_found = 1, free, error; char *end; @@ -618,10 +619,8 @@ return -ERANGE; ext3_xattr_lock(); - if (EXT3_I(inode)->i_file_acl) { + if (block) { /* The inode already has an extended attribute block. */ - int block = EXT3_I(inode)->i_file_acl; - bh = sb_bread(sb, block); error = -EIO; if (!bh)