From: Dave Kleikamp Date: Sun, 24 May 2009 01:28:41 +0000 (-0500) Subject: jfs: Add missing mutex_unlock call to error path X-Git-Tag: v2.6.31-rc1~385^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79f52b77b89e8b7aa9fbe62135eea198a2ecbd5b;p=thirdparty%2Fkernel%2Flinux.git 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: Dave Kleikamp Reported-by: Jan Kucera --- diff --git a/fs/jfs/jfs_imap.c b/fs/jfs/jfs_imap.c index 346057218edcd..0fc30407f0391 100644 --- a/fs/jfs/jfs_imap.c +++ b/fs/jfs/jfs_imap.c @@ -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);