projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9b8861
)
mesh: Fix crash after deleting all subscriptions
01/221701/1
author
Rafał Gajda
<rafal.gajda@silvair.com>
Mon, 18 Nov 2019 10:51:18 +0000
(11:51 +0100)
committer
Abhay Agarwal
<ay.agarwal@samsung.com>
Tue, 7 Jan 2020 05:11:40 +0000
(10:41 +0530)
Change-Id: I5c05a9c804d6772fff5a76d366fb1fba844c5710
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
mesh/model.c
patch
|
blob
|
history
diff --git
a/mesh/model.c
b/mesh/model.c
index
578fb79
..
f1e1a21
100644
(file)
--- a/
mesh/model.c
+++ b/
mesh/model.c
@@
-1469,9
+1469,8
@@
int mesh_model_sub_del_all(struct mesh_node *node, uint16_t addr, uint32_t id)
for (; entry; entry = entry->next)
mesh_net_dst_unreg(net, (uint16_t) L_PTR_TO_UINT(entry->data));
- l_queue_destroy(mod->subs, NULL);
- l_queue_destroy(mod->virtuals, unref_virt);
- mod->virtuals = l_queue_new();
+ l_queue_clear(mod->subs, NULL);
+ l_queue_clear(mod->virtuals, unref_virt);
return MESH_STATUS_SUCCESS;
}