CAPI: Fix leaks in capifs_new_ncci
authorJan Kiszka <jan.kiszka@web.de>
Mon, 8 Feb 2010 10:12:05 +0000 (10:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 00:01:17 +0000 (16:01 -0800)
commitc947862f9126983537a4cc11e07d26882d60b7e7
tree335ae3483ea540877ff5230c3f43288847300417
parent54716e3beb0ab20c49471348dfe399a71bfc8fd3
CAPI: Fix leaks in capifs_new_ncci

When something went wrong during capifs_new_ncci, the looked up dentry
was not properly released. Neither was the allocated inode. Refactor the
function to avoid leaks.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capifs.c