Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79f52b77 authored by Dave Kleikamp's avatar Dave Kleikamp
Browse files

jfs: Add missing mutex_unlock call to error path



Jan Kucera found an missing call to mutex_unlock() with his static code
checker.  It's an unlikely error path to hit in the real world, but it
should be fixed.

Signed-off-by: default avatarDave Kleikamp <shaggy@linux.vnet.ibm.com>
Reported-by: default avatarJan Kucera <kucera.jan.cz@gmail.com>
parent 9c83633a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2571,6 +2571,7 @@ diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp)


			txAbort(tid, 0);
			txAbort(tid, 0);
			txEnd(tid);
			txEnd(tid);
			mutex_unlock(&JFS_IP(ipimap)->commit_mutex);


			/* release the inode map lock */
			/* release the inode map lock */
			IWRITE_UNLOCK(ipimap);
			IWRITE_UNLOCK(ipimap);