From c7eea4d0d5ee8da977275964c5da7ccbdea6dff2 Mon Sep 17 00:00:00 2001 From: BytesGalore Date: Tue, 10 Feb 2015 12:25:42 +0100 Subject: [PATCH] sys/net/sixlowpan: change to release `lowpan.c::lowpan_context_mutex` when no context is recognized --- sys/net/network_layer/sixlowpan/lowpan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net/network_layer/sixlowpan/lowpan.c b/sys/net/network_layer/sixlowpan/lowpan.c index 65889732c5..2c4cce1e6c 100644 --- a/sys/net/network_layer/sixlowpan/lowpan.c +++ b/sys/net/network_layer/sixlowpan/lowpan.c @@ -1286,6 +1286,7 @@ void lowpan_iphc_decoding(uint8_t *data, uint8_t length, net_if_eui64_t *s_addr, if (con == NULL) { printf("ERROR: context not found\n"); + mutex_unlock(&lowpan_context_mutex); return; } @@ -1386,6 +1387,7 @@ void lowpan_iphc_decoding(uint8_t *data, uint8_t length, net_if_eui64_t *s_addr, if (con == NULL) { printf("ERROR: context not found\n"); + mutex_unlock(&lowpan_context_mutex); return; } @@ -1462,6 +1464,7 @@ void lowpan_iphc_decoding(uint8_t *data, uint8_t length, net_if_eui64_t *s_addr, if (con == NULL) { printf("ERROR: context not found\n"); + mutex_unlock(&lowpan_context_mutex); return; }