Merge branch 'master' of bitbucket.org:nuttx/nuttx

This commit is contained in:
Gregory Nutt 2016-11-02 09:07:40 -06:00
commit 1598d3d050

View File

@ -313,7 +313,7 @@ ssize_t up_progmem_write(size_t addr, const void *buf, size_t count)
addr -= STM32_FLASH_BASE;
}
if ((addr+count) > STM32_FLASH_SIZE)
if ((addr+count) >= STM32_FLASH_SIZE)
{
return -EFAULT;
}