1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #2419 from BytesGalore/lowpan_release_mutex_on_unknown_iphc

sys/net/sixlowpan: prevent deadlock when no IPHC context is recognized
This commit is contained in:
Lotte Steenbrink 2015-02-10 14:46:35 +01:00
commit 52d51a781a

View File

@ -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;
}