jfs: fix error path in ialloc
authorDave Kleikamp <dave.kleikamp@oracle.com>
Sat, 7 Sep 2013 02:49:56 +0000 (21:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2013 03:05:31 +0000 (12:05 +0900)
commit4ac4eb6520aa52f77be36780bbe5b17ca3bce983
treeb315b84f2e10c83e3206b826a2eb01be642141a5
parentfa2025dc177d9bef300b48289b689a5d667f5ae9
jfs: fix error path in ialloc

commit 8660998608cfa1077e560034db81885af8e1e885 upstream.

If insert_inode_locked() fails, we shouldn't be calling
unlock_new_inode().

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Tested-by: Michael L. Semon <mlsemon35@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jfs/jfs_inode.c