xfs: unlock inode when xfs_ioctl_setattr_get_trans can't get transaction
mainline inclusion from mainline-5.2-rc1 commit 3de5eab3 category: bugfix bugzilla: 19045 CVE: NA --------------------------- We passed an inode into xfs_ioctl_setattr_get_trans with join_flags indicating which locks are held on that inode. If we can't allocate a transaction then we need to unlock the inode before we bail out, like all the other error paths do. Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com> Reviewed-by: NDave Chinner <dchinner@redhat.com> Reviewed-by: NChristoph Hellwig <hch@lst.de> Reviewed-by: NBrian Foster <bfoster@redhat.com> Signed-off-by: Nzhengbin <zhengbin13@huawei.com> Reviewed-by: Nyu kuai <yukuai3@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录