[FIX] Target mem alloc send to host 86/60686/3
authorAlexander Aksenov <a.aksenov@samsung.com>
Mon, 28 Dec 2015 14:06:22 +0000 (17:06 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Tue, 26 Apr 2016 13:56:11 +0000 (16:56 +0300)
With UIHV there are two SWAP libraries of different kind,
but manager treats them as the same library. This leads to several
errors.

Change-Id: Ib1afd9b4846084d2c2fd61201f98162cee3e5154
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
daemon/target.c

index 8791632..8f395c8 100644 (file)
@@ -349,8 +349,8 @@ uint64_t target_get_total_alloc(pid_t pid)
 
                t = target_get(i);
                if (target_get_pid(t) == pid) {
-                       ret = t->allocmem;
-                       goto unlock;
+                       ret += t->allocmem;
+                       /* TODO FIXME Split target libraries of different kind */
                }
        }
 unlock: