Change in osmo-ccid-firmware[master]: assert on free in interrupt, too

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Hoernchen gerrit-no-reply at lists.osmocom.org
Tue Nov 26 18:39:12 UTC 2019


Hoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16241 )


Change subject: assert on free in interrupt, too
......................................................................

assert on free in interrupt, too

Change-Id: I825496c81c2259f4af7f80089a0b047c5600a211
---
M sysmoOCTSIM/talloc.c
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/41/16241/1

diff --git a/sysmoOCTSIM/talloc.c b/sysmoOCTSIM/talloc.c
index 790f657..918cf42 100644
--- a/sysmoOCTSIM/talloc.c
+++ b/sysmoOCTSIM/talloc.c
@@ -1747,6 +1747,9 @@
 {
 	struct talloc_chunk *tc;
 
+	// do not deallocate while handling interrupts!
+	OSMO_ASSERT( !(SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) )
+
 	if (unlikely(ptr == NULL)) {
 		return -1;
 	}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16241
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I825496c81c2259f4af7f80089a0b047c5600a211
Gerrit-Change-Number: 16241
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191126/fba28a21/attachment.htm>


More information about the gerrit-log mailing list