From: Andriy Skulysh Date: Thu, 7 Mar 2013 13:02:57 +0000 (+0200) Subject: LU-2926 ldiskfs: crash in is_bad_inode() X-Git-Tag: 2.3.63~67 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e1a21630f9c517e7d5181a50288c8f7f8d0264d0;p=fs%2Flustre-release.git LU-2926 ldiskfs: crash in is_bad_inode() Fix error handling in ldiskfs_xattr_inode_iget Xyratex-bug-id: MRP-883 Signed-off-by: Andriy Skulysh Change-Id: I9840b7bd32f2c96763cae402a7bcb51d5798ea6c Reviewed-on: http://review.whamcloud.com/5631 Reviewed-by: Andreas Dilger Tested-by: Hudson Reviewed-by: Keith Mannthey Reviewed-by: Jian Yu Tested-by: Maloo --- diff --git a/ldiskfs/kernel_patches/patches/rhel6.3/ext4-large-eas.patch b/ldiskfs/kernel_patches/patches/rhel6.3/ext4-large-eas.patch index 0fc411a..6c7802c 100644 --- a/ldiskfs/kernel_patches/patches/rhel6.3/ext4-large-eas.patch +++ b/ldiskfs/kernel_patches/patches/rhel6.3/ext4-large-eas.patch @@ -118,7 +118,7 @@ Index: linux-stage/fs/ext4/xattr.c + struct inode *ea_inode = NULL; + + ea_inode = ext4_iget(parent->i_sb, ea_ino); -+ if (ea_inode == NULL || is_bad_inode(ea_inode)) { ++ if (IS_ERR(ea_inode) || is_bad_inode(ea_inode)) { + ext4_error(parent->i_sb, "error while reading EA inode %d", + ea_ino); + *err = -EIO;