projects
/
platform
/
core
/
system
/
libsyscommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eac1f6d
)
resource-manager: allocate resource id correctly
27/287827/1
author
Youngjae Cho
<y0.cho@samsung.com>
Mon, 6 Feb 2023 10:05:08 +0000
(19:05 +0900)
committer
youngjae cho
<y0.cho@samsung.com>
Tue, 7 Feb 2023 02:26:55 +0000
(
02:26
+0000)
It hasn't cleared sign bit on allocating resource id. Fix it to clear
sign bit correctly.
Change-Id: Ic429dd26bcd6082ed434aecf98b8a48eb0b52b47
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit
136020b15e97cd6317e6dca85616fcc041639912
)
src/resource-manager/resource-manager.c
patch
|
blob
|
history
diff --git
a/src/resource-manager/resource-manager.c
b/src/resource-manager/resource-manager.c
index 9e94485dd9a98935f0f05f19f37a42f3314a3811..d2e326eb75636926ca43929a233b73af65d3e463 100644
(file)
--- a/
src/resource-manager/resource-manager.c
+++ b/
src/resource-manager/resource-manager.c
@@
-84,8
+84,8
@@
static int alloc_resource_id(void)
if (resource_id < 0)
resource_id = init_resource_id();
- ret = resource_id
++
;
-
clear_sign_bit(resource_id
);
+ ret = resource_id;
+
resource_id = clear_sign_bit(resource_id + 1
);
pthread_mutex_unlock(&lock);