Unverified Commit e34e0b45 authored by Admar Schoonen's avatar Admar Schoonen Committed by GitHub

Fixed bug where mutex would not be unlocked (#3837)

Fixed bug where uartResizeRxBuffer() did not unlock mutex if creation of queue failed.
parent ef2b5454
......@@ -257,6 +257,7 @@ size_t uartResizeRxBuffer(uart_t * uart, size_t new_size) {
vQueueDelete(uart->queue);
uart->queue = xQueueCreate(new_size, sizeof(uint8_t));
if(uart->queue == NULL) {
UART_MUTEX_UNLOCK();
return NULL;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment