Fixed a bug into tsch-schedule - tsch_schedule_add_link that causes deadlock if a new link cannot be created

This commit is contained in:
Carlo Vallati 2016-03-31 10:09:47 +02:00
parent 29c9907c08
commit 855703e936
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ tsch_schedule_add_link(struct tsch_slotframe *slotframe,
l = memb_alloc(&link_memb);
if(l == NULL) {
PRINTF("TSCH-schedule:! add_link memb_alloc failed\n");
tsch_release_lock();
} else {
static int current_link_handle = 0;
struct tsch_neighbor *n;