assert on free in interrupt, too

Change-Id: I825496c81c2259f4af7f80089a0b047c5600a211
This commit is contained in:
Eric Wild 2019-11-07 14:26:22 +01:00
parent 7528d9cd9c
commit 6e1ad837b2
1 changed files with 3 additions and 0 deletions

View File

@ -1747,6 +1747,9 @@ _PUBLIC_ int _talloc_free(void *ptr, const char *location)
{
struct talloc_chunk *tc;
// do not deallocate while handling interrupts!
OSMO_ASSERT( !(SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) )
if (unlikely(ptr == NULL)) {
return -1;
}