Merged in david_s5/nuttx/upstream_stm32_flash_fixes (pull request #294)

stm322_flash:missing unlock on F1 HSI off path

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
David Sidrane 2017-03-24 00:55:04 +00:00 committed by Gregory Nutt
commit 038ec5439f

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