projects
/
platform
/
core
/
system
/
pass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e032d2c
)
util: resource: Add missing NULL checking for setting interest mask
60/271260/6
author
Chanwoo Choi
<cw00.choi@samsung.com>
Thu, 17 Feb 2022 09:16:05 +0000
(18:16 +0900)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Fri, 18 Feb 2022 07:52:00 +0000
(16:52 +0900)
Change-Id: Ibd91d659b9f0c8fee73114b97fafdde2cd3118a9
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/util/resource.c
patch
|
blob
|
history
diff --git
a/src/util/resource.c
b/src/util/resource.c
index
087f3c3
..
fedcb71
100644
(file)
--- a/
src/util/resource.c
+++ b/
src/util/resource.c
@@
-437,10
+437,16
@@
int put_resource_attr_ptr(struct resource *resource, u_int64_t attr_id)
void set_resource_attr_interest(struct resource *resource, u_int64_t interest_mask)
{
+ if (!resource)
+ return;
+
resource->attr_interest |= interest_mask;
}
void unset_resource_attr_interest(struct resource *resource, u_int64_t interest_mask)
{
+ if (!resource)
+ return;
+
resource->attr_interest &= ~interest_mask;
}