mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-03 02:49:09 +08:00
xfs: Fix missing xfs_iunlock() on error recovery path in xfs_readlink()
Commit b52a360b
forgot to call xfs_iunlock() when it detected corrupted
symplink and bailed out. Fix it by jumping to 'out' instead of doing return.
CC: stable@kernel.org
CC: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Alex Elder <elder@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
parent
dcd6c92267
commit
9b025eb3a8
@ -131,7 +131,8 @@ xfs_readlink(
|
|||||||
__func__, (unsigned long long) ip->i_ino,
|
__func__, (unsigned long long) ip->i_ino,
|
||||||
(long long) pathlen);
|
(long long) pathlen);
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
return XFS_ERROR(EFSCORRUPTED);
|
error = XFS_ERROR(EFSCORRUPTED);
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user