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

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
......@@ -2571,6 +2571,7 @@ diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp)
txAbort(tid, 0);
txEnd(tid);
mutex_unlock(&JFS_IP(ipimap)->commit_mutex);
/* release the inode map lock */
IWRITE_UNLOCK(ipimap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment