diff options
Diffstat (limited to 'fs/ext2/xattr.c')
-rw-r--r-- | fs/ext2/xattr.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index f84700be3274..c2e4dce984d2 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c | |||
@@ -199,14 +199,6 @@ bad_block: ext2_error(inode->i_sb, "ext2_xattr_get", | |||
199 | goto found; | 199 | goto found; |
200 | entry = next; | 200 | entry = next; |
201 | } | 201 | } |
202 | /* Check the remaining name entries */ | ||
203 | while (!IS_LAST_ENTRY(entry)) { | ||
204 | struct ext2_xattr_entry *next = | ||
205 | EXT2_XATTR_NEXT(entry); | ||
206 | if ((char *)next >= end) | ||
207 | goto bad_block; | ||
208 | entry = next; | ||
209 | } | ||
210 | if (ext2_xattr_cache_insert(bh)) | 202 | if (ext2_xattr_cache_insert(bh)) |
211 | ea_idebug(inode, "cache insert failed"); | 203 | ea_idebug(inode, "cache insert failed"); |
212 | error = -ENODATA; | 204 | error = -ENODATA; |
@@ -355,7 +347,7 @@ static void ext2_xattr_update_super_block(struct super_block *sb) | |||
355 | /* | 347 | /* |
356 | * ext2_xattr_set() | 348 | * ext2_xattr_set() |
357 | * | 349 | * |
358 | * Create, replace or remove an extended attribute for this inode. Buffer | 350 | * Create, replace or remove an extended attribute for this inode. Value |
359 | * is NULL to remove an existing extended attribute, and non-NULL to | 351 | * is NULL to remove an existing extended attribute, and non-NULL to |
360 | * either replace an existing extended attribute, or create a new extended | 352 | * either replace an existing extended attribute, or create a new extended |
361 | * attribute. The flags XATTR_REPLACE and XATTR_CREATE | 353 | * attribute. The flags XATTR_REPLACE and XATTR_CREATE |