stm322_flash:missing unlock on F1 HSI off path

This commit is contained in:
David Sidrane
2017-03-23 14:22:45 -10:00
parent 1ad123bb91
commit 66910577be
+1
View File
@@ -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