From 66910577beb4735b0e19ba72dd28be9c5594d91f Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 23 Mar 2017 14:22:45 -1000 Subject: [PATCH] stm322_flash:missing unlock on F1 HSI off path --- arch/arm/src/stm32/stm32_flash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/src/stm32/stm32_flash.c b/arch/arm/src/stm32/stm32_flash.c index 3b4ebd8a10..3f079442d8 100644 --- a/arch/arm/src/stm32/stm32_flash.c +++ b/arch/arm/src/stm32/stm32_flash.c @@ -290,6 +290,7 @@ ssize_t up_progmem_erasepage(size_t page) #if !defined(CONFIG_STM32_STM32F40XX) if (!(getreg32(STM32_RCC_CR) & RCC_CR_HSION)) { + sem_unlock(); return -EPERM; } #endif