[FIX] Loader: dentry get/put balance
authorAlexander Aksenov <a.aksenov@samsung.com>
Tue, 17 May 2016 15:26:46 +0000 (18:26 +0300)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Wed, 18 May 2016 07:54:05 +0000 (00:54 -0700)
Add putting dentry for already existed binaries in
loader_storage lists.

Change-Id: I6ca2c70dd8128108ef94ac440fd21fd4aff984e0
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
loader/loader_storage.c

index 2a03f31..de33076 100644 (file)
@@ -44,7 +44,7 @@ static inline int __add_handler(char *path)
 
        if (__check_dentry_already_exist(dentry)) {
                ret = 1;
-               goto add_handler_out;
+               goto add_handler_fail_release_dentry;
        }
 
        bin = kmalloc(sizeof(*bin), GFP_KERNEL);