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: ae673f534a ("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>
This commit is contained in:
parent
c6c56ff975
commit
70685c291e
1 changed files with 0 additions and 1 deletions
|
|
@ -653,7 +653,6 @@ xfs_attri_recover_work(
|
|||
break;
|
||||
}
|
||||
if (error) {
|
||||
xfs_irele(ip);
|
||||
XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, mp, attrp,
|
||||
sizeof(*attrp));
|
||||
return ERR_PTR(-EFSCORRUPTED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue