diff --git a/mesh/model.c b/mesh/model.c
index 80c30ed..a632d80 100644
--- a/mesh/model.c
+++ b/mesh/model.c
static void model_bind_idx(struct mesh_node *node, struct mesh_model *mod,
uint16_t idx)
{
+ if (!mod->bindings)
+ mod->bindings = l_queue_new();
+
l_queue_push_tail(mod->bindings, L_UINT_TO_PTR(idx));
l_debug("Add %4.4x to model %8.8x", idx, mod->id);
if (!mod->subs)
mod->subs = l_queue_new();
- if (!mod->subs)
- return MESH_STATUS_STORAGE_FAIL;
if (l_queue_find(mod->subs, simple_match, L_UINT_TO_PTR(grp)))
/* Group already exists */