From: Alexander Aksenov Date: Mon, 28 Dec 2015 14:06:22 +0000 (+0300) Subject: [FIX] Target mem alloc send to host X-Git-Tag: accepted/tizen/common/20160525.155746~2^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c21171004fe7296a820a18684e8e8f7cc0217ea;p=platform%2Fcore%2Fsystem%2Fswap-manager.git [FIX] Target mem alloc send to host 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 --- diff --git a/daemon/target.c b/daemon/target.c index 8791632..8f395c8 100644 --- a/daemon/target.c +++ b/daemon/target.c @@ -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: