]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: don't irele after failing to iget in xfs_attri_recover_work
authorDarrick J. Wong <djwong@kernel.org>
Mon, 23 Mar 2026 21:01:57 +0000 (14:01 -0700)
committerCarlos Maiolino <cem@kernel.org>
Thu, 26 Mar 2026 13:25:06 +0000 (14:25 +0100)
commit70685c291ef82269180758130394ecdc4496b52c
tree2c8e5d4c85705a1d0ab125370a996c33c5be443b
parentc6c56ff975f046be25f527231a239e37920aca5e
xfs: don't irele after failing to iget in xfs_attri_recover_work

xlog_recovery_iget* never set @ip to a valid pointer if they return
an error, so this irele will walk off a dangling pointer.  Fix that.

Cc: stable@vger.kernel.org # v6.10
Fixes: ae673f534a3097 ("xfs: record inode generation in xattr update log intent items")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Long Li <leo.lilong@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_attr_item.c