Commit c5557227 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'xfs-5.8-merge-9' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux

Pull xfs fix from Darrick Wong:
 "We've settled down into the bugfix phase; this one fixes a resource
  leak on an error bailout path"

* tag 'xfs-5.8-merge-9' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
  xfs: Add the missed xfs_perag_put() for xfs_ifree_cluster()
parents 61f3e825 8cc00724
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2634,8 +2634,10 @@ xfs_ifree_cluster(
		error = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno,
				mp->m_bsize * igeo->blocks_per_cluster,
				XBF_UNMAPPED, &bp);
		if (error)
		if (error) {
			xfs_perag_put(pag);
			return error;
		}

		/*
		 * This buffer may not have been correctly initialised as we