Skip to content

Commit

Permalink
jfs: Add missing mutex_unlock call to error path
Browse files Browse the repository at this point in the history
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 <shaggy@linux.vnet.ibm.com>
Reported-by: Jan Kucera <kucera.jan.cz@gmail.com>
  • Loading branch information
Dave Kleikamp committed May 24, 2009
1 parent 9c83633 commit 79f52b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/jfs/jfs_imap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 79f52b7

Please sign in to comment.